Skip to content

Commit

Permalink
fix market day display indices
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 18, 2024
1 parent cd9697b commit 44f2f8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/contest-progress.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
.sort((a, b) => cmpDate(b.time, a.time)) as t, j (j)}
<div class="entry">
<h3>
<a href={`${base}/tournament?season=${szn.idx + 1}&id=${t.id}`}>
<a href={`${base}/tournament?season=${szn.idx + 1}&id=${t.id}&idx=${tournamentsBySeason[szn.idx].length - j}`}>
{#if t.type == 'scrimmage'} Market Day{:else}Grand Faire{/if}
</a>
</h3>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/season/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
{/if}
</h3>
<a href={`${base}/tournament?season=${seasonIdx+1}&id=${tournament.id}${
''}${tournament.marketDayIndex !== undefined ? `&idx=${tournament.marketDayIndex}` : ''}`}>
''}${tournament.marketDayIndex !== undefined ? `&idx=${tournament.marketDayIndex + 1}` : ''}`}>
&gt;&gt; View tournament
</a>
<div>
Expand Down

0 comments on commit 44f2f8c

Please sign in to comment.