From 2bf6530813d544f1f76f175cee3b68a4c60be39d Mon Sep 17 00:00:00 2001 From: dharaneesh-r Date: Tue, 16 Jun 2026 10:59:50 +0530 Subject: [PATCH] updates on the orders page fix --- src/pages/nearle/orders/orders.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/pages/nearle/orders/orders.js b/src/pages/nearle/orders/orders.js index ae770b1..c342d51 100644 --- a/src/pages/nearle/orders/orders.js +++ b/src/pages/nearle/orders/orders.js @@ -1081,12 +1081,21 @@ const Orders = () => { - - {dayjs(row.pickupslot).format('hh:mm A')} - - - · {dayjs(row.pickupslot).format('DD MMM YY')} - + {(() => { + const dateObj = row.pickupslot && dayjs(row.pickupslot).isValid() + ? dayjs(row.pickupslot) + : dayjs(row.deliverydate || row.orderdate); + return ( + <> + + {dateObj.format('hh:mm A')} + + + · {dateObj.format('DD MMM YY')} + + + ); + })()}