+
+ {#if scoresQuery.isLoading}
+
-
-
Events
-
{data.eventScores.length}
+ {:else if scoresQuery.isError}
+
-
+ {:else if scoresQuery.data}
+ {@const data = scoresQuery.data}
- {#if data.eventScores.length === 0}
-
No GW scores recorded yet.
- {:else}
-
- {#each data.eventScores as eventScore (eventScore.gwEvent.id)}
- -
-
-
- {/each}
-
+
+
+
+
+ {formatScore(data.grandTotal)}
+ Total Honors
+
+
+ {data.eventScores.length}
+ Events
+
+
+
+ {#if historyChartData.length > 0}
+
+
+
+ {/if}
+
+ {#if data.eventScores.length === 0}
+
No GW scores recorded yet.
+ {:else}
+
+
+
+ {#each data.eventScores as eventScore (eventScore.gwEvent.id)}
+
+ {/each}
+
+ {/if}
{/if}
- {/if}
+
diff --git a/src/routes/(app)/crew/phantoms/[phantomId]/+page.svelte b/src/routes/(app)/crew/phantoms/[phantomId]/+page.svelte
index 0a451fe4..91592187 100644
--- a/src/routes/(app)/crew/phantoms/[phantomId]/+page.svelte
+++ b/src/routes/(app)/crew/phantoms/[phantomId]/+page.svelte
@@ -2,12 +2,13 @@
-
-
+
+ {phantomName} / granblue.team
+
- {#if scoresQuery.isLoading}
-
Loading scores...
- {:else if scoresQuery.isError}
-
Failed to load scores
- {:else if scoresQuery.data}
- {@const data = scoresQuery.data}
-
-
-
-
Total Honors
-
{formatScore(data.grandTotal)}
+
+
+ {#if scoresQuery.isLoading}
+
-
-
Events
-
{data.eventScores.length}
+ {:else if scoresQuery.isError}
+
-
+ {:else if scoresQuery.data}
+ {@const data = scoresQuery.data}
- {#if data.eventScores.length === 0}
-
No GW scores recorded yet.
- {:else}
-
- {#each data.eventScores as eventScore (eventScore.gwEvent.id)}
- -
-
-
- {/each}
-
+
+ {#snippet belowTitle()}
+ Phantom
+ {/snippet}
+
+
+
+
+ {formatScore(data.grandTotal)}
+ Total Honors
+
+
+ {data.eventScores.length}
+ Events
+
+
+
+ {#if historyChartData.length > 0}
+
+
+
+ {/if}
+
+ {#if data.eventScores.length === 0}
+
No GW scores recorded yet.
+ {:else}
+
+
+
+ {#each data.eventScores as eventScore (eventScore.gwEvent.id)}
+
+ {/each}
+
+ {/if}
{/if}
- {/if}
+