Skip to content

Commit

Permalink
fix season page not loading if started cold
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 18, 2024
1 parent 43e4987 commit 15e9654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/(app)/season/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@
</style>

<Page title="Season Details">
{#if data instanceof Promise}
{#if $seasons.length === 0 || data instanceof Promise}
<div class="loading"><CatSpinner /></div>
{:else if data instanceof Error}
<CatSpinner failed />
<div class="error">{getFriendlyErrorMsg(data)}</div>
{:else if data && seasonIdx !== null}
{:else if data && typeof(seasonIdx) === 'number'}
<Lede>
<h1>
Season {seasonIdx + 1}
Expand Down

0 comments on commit 15e9654

Please sign in to comment.