Skip to content

Commit

Permalink
Auctions not started are not finished
Browse files Browse the repository at this point in the history
  • Loading branch information
ktecho committed Feb 9, 2024
1 parent 2c8e51e commit 883a3f5
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,20 @@
</div>

{#if product.event.kind === EVENT_KIND_AUCTION}
{#if product.ended}
{#if !product.start_date}
<div class="flex">
<p class="pt-5 text-xl font-bold mx-auto">Auction Ended</p>
<p class="pt-5 text-xl font-bold mx-auto">Coming Soon</p>
</div>
{:else}
<div class="pt-4 pb-2">
<Countdown totalSeconds={product.endsAt - now} bind:ended={product.ended} />
</div>
{#if product.ended}
<div class="flex">
<p class="pt-5 text-xl font-bold mx-auto">Auction Ended</p>
</div>
{:else}
<div class="pt-4 pb-2">
<Countdown totalSeconds={product.endsAt - now} bind:ended={product.ended} />
</div>
{/if}
{/if}
{/if}

Expand Down

0 comments on commit 883a3f5

Please sign in to comment.