fix build

This commit is contained in:
Mohammad Khyata 2026-04-24 12:28:30 +03:00
parent 65964605e1
commit 615a0fda59
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ export function CreateInvoiceFromEstimateButton() {
const estimateContext = useEstimate() const estimateContext = useEstimate()
const api = useAuthApi() const api = useAuthApi()
const estimateId = estimateContext?.id ?? "" const estimateId = String(estimateContext?.id ?? "")
const { data: servicesData } = useQuery({ const { data: servicesData } = useQuery({
queryKey: [ESTIMATE_ROUTES.SERVICES, estimateId, "for-invoice"], queryKey: [ESTIMATE_ROUTES.SERVICES, estimateId, "for-invoice"],

View File

@ -16,7 +16,7 @@ export function CreateJobCardFromEstimateButton() {
const api = useAuthApi() const api = useAuthApi()
const router = useRouter() const router = useRouter()
const estimateId = estimateContext?.id ?? "" const estimateId = String(estimateContext?.id ?? "")
if (!estimateContext || !estimateId) return null if (!estimateContext || !estimateId) return null