fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 29s

This commit is contained in:
2026-03-10 16:49:55 -04:00
parent 1d0fb112f6
commit 55ab0ae7fc

View File

@@ -470,8 +470,13 @@ const RoutesDashboard = () => {
const customerProfile = customerProfileById.get(customerId);
if (!customerProfile) return;
const routeNote = `${customerInRoute?.customer_note || ''}`.trim();
const dbNoteToDriver = `${customerProfile?.notes_for_driver || ''}`.trim();
const normalizeNullableNote = (value) => {
const normalized = `${value || ''}`.trim().toLowerCase();
if (normalized === 'null') return '';
return `${value || ''}`.trim();
};
const routeNote = normalizeNullableNote(customerInRoute?.customer_note);
const dbNoteToDriver = normalizeNullableNote(customerProfile?.notes_for_driver);
if (routeNote === dbNoteToDriver) return;
const existing = mismatchMap.get(customerId) || {