diff --git a/src/ipc/ipc-estimate-utils.js b/src/ipc/ipc-estimate-utils.js index 0bea299..aa3381d 100644 --- a/src/ipc/ipc-estimate-utils.js +++ b/src/ipc/ipc-estimate-utils.js @@ -40,7 +40,7 @@ export async function UpsertEstimate(job) { job = { ...job, - v_mileage: job.v_mileage === "" ? 0 : job.v_mileage, + v_mileage: (job.v_mileage !== "" && job.v_mileage) || null, v_type: DetermineVehicleType(job), v_age: CalculateVehicleAge({ ...job,