diff --git a/web/components/estimates/create/stage-one.tsx b/web/components/estimates/create/stage-one.tsx index caa20e614..c8b546c53 100644 --- a/web/components/estimates/create/stage-one.tsx +++ b/web/components/estimates/create/stage-one.tsx @@ -29,7 +29,7 @@ export const EstimateCreateStageOne: FC = (props) => { label: !ESTIMATE_SYSTEMS[currentSystem]?.is_available ? (
{ESTIMATE_SYSTEMS[currentSystem]?.name} - +
diff --git a/web/components/estimates/update/stage-one.tsx b/web/components/estimates/update/stage-one.tsx index d0bd1b4a8..35ce85694 100644 --- a/web/components/estimates/update/stage-one.tsx +++ b/web/components/estimates/update/stage-one.tsx @@ -8,7 +8,7 @@ import { ESTIMATE_OPTIONS_STAGE_ONE } from "@/constants/estimates"; import { cn } from "@/helpers/common.helper"; type TEstimateUpdateStageOne = { - handleEstimateEditType: (stage: TEstimateUpdateStageKeys) => void; + handleEstimateEditType?: (stage: TEstimateUpdateStageKeys) => void; }; export const EstimateUpdateStageOne: FC = (props) => { @@ -24,7 +24,7 @@ export const EstimateUpdateStageOne: FC = (props) => { "border border-custom-border-300 cursor-pointer space-y-1 p-3 rounded transition-colors", stage?.is_ee ? `bg-custom-background-90` : `hover:bg-custom-background-90` )} - onClick={() => !stage?.is_ee && handleEstimateEditType(stage.key)} + onClick={() => !stage?.is_ee && handleEstimateEditType && handleEstimateEditType(stage.key)} >

{stage.title}