From 0c5b2108e1ca94a3af9abbe8363a242755c79f51 Mon Sep 17 00:00:00 2001 From: JakobSA Date: Thu, 28 Nov 2024 21:30:36 +0100 Subject: [PATCH] Better safety on singleware --- Frontend/src/views/singleWare/singleWare.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frontend/src/views/singleWare/singleWare.tsx b/Frontend/src/views/singleWare/singleWare.tsx index d73febf..3d47db9 100644 --- a/Frontend/src/views/singleWare/singleWare.tsx +++ b/Frontend/src/views/singleWare/singleWare.tsx @@ -104,7 +104,7 @@ function SingleWare() {

Price:

- Ends at {item.auctionEnd.toLocaleString()} + Ends at {item.auctionEnd ? item.auctionEnd.toLocaleString() : "N/A"}

@@ -119,7 +119,7 @@ function SingleWare() { {bids.map((bid, index) => (
  • - {new Date(bid.bidTime || "").toLocaleString()} + {bid.bidTime ? new Date(bid.bidTime).toLocaleString() : "N/A"} : {bid.bidAmount}