From 84b6abd732d32b2a29a581faab19ba0fce86563f Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Fri, 1 Jul 2022 19:36:14 -0500
Subject: say if there's no buyer

---
 src/lib/Auction.svelte | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/lib/Auction.svelte')

diff --git a/src/lib/Auction.svelte b/src/lib/Auction.svelte
index 57d8cee..39f4904 100644
--- a/src/lib/Auction.svelte
+++ b/src/lib/Auction.svelte
@@ -21,7 +21,11 @@
 	{/if}
 	<div class="auction-info-text">
 		<p>Coins: <b>{auction.coins.toLocaleString()}</b></p>
-		<p>Buyer: <Username player={auction.buyer} prefix hyperlinkToProfile /></p>
+		{#if auction.buyer}
+			<p>Buyer: <Username player={auction.buyer} prefix hyperlinkToProfile /></p>
+		{:else}
+			<p>No buyer</p>
+		{/if}
 		<p>{millisecondsToTime(Date.now() - auction.creationTimestamp)} ago</p>
 	</div>
 </div>
-- 
cgit 

