From 31aa560e3798c476b59c448a3d49f4d3bb07ad3e Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 19 Apr 2021 08:48:23 -0700 Subject: [PATCH] Update vehicle mileage bug. --- src/ipc/ipc-estimate-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,