This commit is contained in:
@@ -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) || {
|
||||
|
||||
Reference in New Issue
Block a user