ui: Randomize themes list

This commit is contained in:
nemunaire 2021-08-31 21:47:49 +02:00
commit 23d5ea7c97
5 changed files with 39 additions and 7 deletions

View file

@ -9,8 +9,8 @@
} from 'sveltestrap';
import { my } from '../stores/my.js';
import { max_solved, themes } from '../stores/themes.js';
import { myThemes } from '../stores/mythemes.js';
import { max_solved } from '../stores/themes.js';
import { myThemes, themes } from '../stores/mythemes.js';
</script>
<Dropdown nav inNavbar>
@ -33,7 +33,7 @@
</Badge>
{/if}
<Badge>
{#if $my && $my.team_id}{$myThemes[th].exercice_solved}/{/if}{$themes[th].exercice_count}
{#if $my && $my.team_id}{$myThemes[$themes[th].id].exercice_solved}/{/if}{$themes[th].exercice_count}
</Badge>
</DropdownItem>
{/each}