feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration - Checkpoint
This commit is contained in:
@@ -194,10 +194,13 @@ const normalizeVehicleCandidates = (res) => {
|
||||
for (const sv of serv) {
|
||||
const v = sv?.Vehicle || {};
|
||||
const vin = v?.Vin || v?.VIN || v?.vin;
|
||||
|
||||
if (!vin) continue;
|
||||
|
||||
const year = v?.VehicleYr || v?.ModelYear || v?.Year;
|
||||
const make = v?.VehicleMake || v?.MakeName || v?.Make;
|
||||
const model = v?.MdlNo || v?.ModelDesc || v?.Model;
|
||||
|
||||
const label = [year, make, model, vin].filter(Boolean).join(" ");
|
||||
out.push({ vin, year, make, model, label, _blk: blk });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user