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} {#each data as match}
<tr> <tr>
<td>{displayDate(match.date.toString())}</td> <td>{displayDate(match.date.toString())}</td>
<td {#if match?.players[0]?.username && match?.players[1]?.username}
>{match.players[0].username}<br />{match.players[1] <td
.username}</td >{match.players[0].username}<br />{match.players[1]
> .username}</td
<td>{match.score[0]}<br />{match.score[1]}</td> >
<td>{match.score[0]}<br />{match.score[1]}</td>
{/if}
</tr> </tr>
{/each} {/each}
</tbody> </tbody>

Loading…
Cancel
Save