fix: remove duplicate fmtTime declaration in OrderDetailPanel
This commit is contained in:
parent
0821bcc747
commit
edb6784c16
|
|
@ -68,14 +68,6 @@ const fmtTime = (ts) => {
|
|||
} catch { return "—"; }
|
||||
};
|
||||
|
||||
const fmtTime = (ts) => {
|
||||
if (!ts) return "—";
|
||||
try {
|
||||
const d = new Date(ts);
|
||||
return d.toLocaleString("ru-RU", { day: "2-digit", month: "2-digit", year: "numeric", hour: "2-digit", minute: "2-digit" });
|
||||
} catch { return "—"; }
|
||||
};
|
||||
|
||||
const DELIVERY_TIME_OPTIONS = ["Первая половина дня", "Вторая половина дня"];
|
||||
const STATUS_LABELS = DELIVERY_GROUP_STATUS_LABELS;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue