diff --git a/front/volume/src/components/MatchHistory.svelte b/front/volume/src/components/MatchHistory.svelte index e612462..7e0f541 100644 --- a/front/volume/src/components/MatchHistory.svelte +++ b/front/volume/src/components/MatchHistory.svelte @@ -71,11 +71,13 @@ {#each data as match} {displayDate(match.date.toString())} - {match.players[0].username}
{match.players[1] - .username} - {match.score[0]}
{match.score[1]} + {#if match?.players[0]?.username && match?.players[1]?.username} + {match.players[0].username}
{match.players[1] + .username} + {match.score[0]}
{match.score[1]} + {/if} {/each}