Skip to content

Commit

Permalink
Better safety on singleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob-SA committed Nov 28, 2024
1 parent 096397a commit 0c5b210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frontend/src/views/singleWare/singleWare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function SingleWare() {
<p className="text-gray-500">Price: </p>
</div>
<p className="text-gray-500">
Ends at {item.auctionEnd.toLocaleString()}
Ends at {item.auctionEnd ? item.auctionEnd.toLocaleString() : "N/A"}
</p>
</div>

Expand All @@ -119,7 +119,7 @@ function SingleWare() {
{bids.map((bid, index) => (
<li key={index} className="mb-1">
<strong>
{new Date(bid.bidTime || "").toLocaleString()}
{bid.bidTime ? new Date(bid.bidTime).toLocaleString() : "N/A"}
</strong>
: {bid.bidAmount}
</li>
Expand Down

0 comments on commit 0c5b210

Please sign in to comment.