From 43cfaee2e59a2f312095d054ddce88333e0bf921 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 16 Apr 2021 12:23:12 -0700 Subject: [PATCH] Allow for empty mileage insert. --- src/ipc/ipc-estimate-utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipc/ipc-estimate-utils.js b/src/ipc/ipc-estimate-utils.js index 28284a1..0bea299 100644 --- a/src/ipc/ipc-estimate-utils.js +++ b/src/ipc/ipc-estimate-utils.js @@ -40,6 +40,7 @@ export async function UpsertEstimate(job) { job = { ...job, + v_mileage: job.v_mileage === "" ? 0 : job.v_mileage, v_type: DetermineVehicleType(job), v_age: CalculateVehicleAge({ ...job,