Skip to content

Commit

Permalink
Merge pull request #168 from HE-Arc/150-frontend-limit-decimal-number…
Browse files Browse the repository at this point in the history
…-in-leaderboard

fix number at decimal
  • Loading branch information
Strogator authored Apr 24, 2024
2 parents 3678140 + 8d4a9e3 commit 33e8df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/LeaderBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ onMounted(async () => {
<tr v-for="(user, key) in leaderboard" :key="user.id">
<td>{{ key + 1 }}</td>
<td>{{ user.user_name }}</td>
<td>{{ user.user_iq }}</td>
<td>{{ user.user_iq.toFixed(0)}}</td>
</tr>
<tr v-if="user_rank" class="player-rank">
<td>{{ user_rank.user_rank }}</td>
<td>YOU</td>
<td>{{ user_rank.user_iq }}</td>
<td>{{ user_rank.user_iq.toFixed(0) }}</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 33e8df5

Please sign in to comment.