fix build
This commit is contained in:
parent
65964605e1
commit
615a0fda59
@ -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"],
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user