Skip to content

Commit

Permalink
start counting at 1 on leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 14, 2023
1 parent 10efd4e commit ab6b3e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// This file is auto-generated. Do not modify this file directly.
// This file is auto-generated. Do not modify this file directly.
exports['add-role-fact'] = require('./add-role-fact/add-role-fact.js');
exports['app-component'] = require('./app-component/app-component.js');
exports['async-button'] = require('./async-button/async-button.js');
Expand Down
4 changes: 2 additions & 2 deletions src/leaderboard/leaderboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
<tr v-for="(player, index) in players">
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">#{{index}}</td>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">#{{index + 1}}</td>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">{{player.name}} <img class="inline" v-if="index === 0" src="/images/trophy-gold.svg"><img class="inline" v-if="index === 1" src="/images/trophy-silver.svg"><img class="inline" v-if="index === 2" src="/images/trophy-bronze.svg"></td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{{player.levelsCompleted}}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{{par(player)}}</td>
Expand All @@ -42,4 +42,4 @@
</div>

<oso-footer></oso-footer>
</div>
</div>

0 comments on commit ab6b3e4

Please sign in to comment.