updates on the dispatch page and the dispatchShared page

This commit is contained in:
2026-06-18 12:16:29 +05:30
parent 7669e259d0
commit 892f8fbc5d
2 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ export const ordinal = (n) => {
// rider down to the single delivery they're working on right now.
export const isActiveDelivery = (o) => {
const s = String(o?.orderstatus || '').toLowerCase();
return !FINAL_STATUSES.has(s) && !SKIPPED_STATUSES.has(s);
return s === 'active';
};
// A rider's single in-progress delivery: the first non-final, non-skipped