feat: Add VIN decoding with NHTSA vPIC API (#9) #24

Merged
egullickson merged 6 commits from issue-9-vin-decoding into main 2026-01-11 22:22:36 +00:00
Showing only changes of commit f541c58fa7 - Show all commits

View File

@@ -453,8 +453,6 @@ export const VehicleForm: React.FC<VehicleFormProps> = ({
const makeValue = !watchedMake && decoded.make.value ? decoded.make.value : watchedMake;
const modelValue = !watchedModel && decoded.model.value ? decoded.model.value : watchedModel;
const trimValue = !watchedTrim && decoded.trimLevel.value ? decoded.trimLevel.value : watchedTrim;
const engineValue = !watchedEngine && decoded.engine.value ? decoded.engine.value : watchedEngine;
const transmissionValue = !watchedTransmission && decoded.transmission.value ? decoded.transmission.value : watchedTransmission;
// FIRST: Load all dropdown options hierarchically (like edit mode initialization)
// Options must exist BEFORE setting form values for selects to display correctly