All v-for gets a key

This commit is contained in:
2020-03-10 10:15:53 +01:00
parent 6c22b0e54f
commit dd4875698c
5 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
<div class="highscores" v-if="highscore.length > 0">
<h3>Topp 10 vinnere</h3>
<ol>
<li v-for="person in highscore">
<li v-for="person in highscore" :key="person">
{{ person.name }} - {{ person.wins.length }}
</li>
</ol>