Browse Source

* MatchHistory no usernames protection

master
vvandenb 2 years ago
parent
commit
5cb0c3fa1f
  1. 12
      front/volume/src/components/MatchHistory.svelte

12
front/volume/src/components/MatchHistory.svelte

@ -71,11 +71,13 @@
{#each data as match}
<tr>
<td>{displayDate(match.date.toString())}</td>
<td
>{match.players[0].username}<br />{match.players[1]
.username}</td
>
<td>{match.score[0]}<br />{match.score[1]}</td>
{#if match?.players[0]?.username && match?.players[1]?.username}
<td
>{match.players[0].username}<br />{match.players[1]
.username}</td
>
<td>{match.score[0]}<br />{match.score[1]}</td>
{/if}
</tr>
{/each}
</tbody>

Loading…
Cancel
Save