Browse Source

* MatchHistory no usernames protection

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

2
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>
{#if match?.players[0]?.username && match?.players[1]?.username}
<td <td
>{match.players[0].username}<br />{match.players[1] >{match.players[0].username}<br />{match.players[1]
.username}</td .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