diff --git a/apps/dashboard/modules/estimates/create-invoice-from-estimate-button.tsx b/apps/dashboard/modules/estimates/create-invoice-from-estimate-button.tsx index 91d629f..f873f4d 100644 --- a/apps/dashboard/modules/estimates/create-invoice-from-estimate-button.tsx +++ b/apps/dashboard/modules/estimates/create-invoice-from-estimate-button.tsx @@ -76,7 +76,7 @@ export function CreateInvoiceFromEstimateButton() { const estimateContext = useEstimate() const api = useAuthApi() - const estimateId = estimateContext?.id ?? "" + const estimateId = String(estimateContext?.id ?? "") const { data: servicesData } = useQuery({ queryKey: [ESTIMATE_ROUTES.SERVICES, estimateId, "for-invoice"], diff --git a/apps/dashboard/modules/estimates/create-job-card-from-estimate-button.tsx b/apps/dashboard/modules/estimates/create-job-card-from-estimate-button.tsx index 4eeb214..dbd38f1 100644 --- a/apps/dashboard/modules/estimates/create-job-card-from-estimate-button.tsx +++ b/apps/dashboard/modules/estimates/create-job-card-from-estimate-button.tsx @@ -16,7 +16,7 @@ export function CreateJobCardFromEstimateButton() { const api = useAuthApi() const router = useRouter() - const estimateId = estimateContext?.id ?? "" + const estimateId = String(estimateContext?.id ?? "") if (!estimateContext || !estimateId) return null