Merged in feature/IO-2518-Warning-on-VIN-Length (pull request #1143)

IO-2518 Null coalesce for v_vin for warning
This commit is contained in:
Allan Carr
2024-01-08 19:18:24 +00:00

View File

@@ -222,7 +222,7 @@ export function JobsDetailHeader({ job, bodyshop, disabled }) {
{`${job.v_vin || t("general.labels.na")}`}
</VehicleVinDisplay>
{bodyshop.pbs_serialnumber || bodyshop.cdk_dealerid ? (
job.v_vin.length !== 17 ? (
job.v_vin?.length !== 17 ? (
<WarningFilled style={{ color: "tomato", marginLeft: ".3rem" }} />
) : null
) : null}