frontend: $team is a derivated store now, use teamStore instead
This commit is contained in:
parent
5a9d2226e4
commit
ac39fe2493
@ -16,7 +16,7 @@
|
|||||||
import { blake2b } from 'hash-wasm';
|
import { blake2b } from 'hash-wasm';
|
||||||
|
|
||||||
import { my } from '$lib/stores/my.js';
|
import { my } from '$lib/stores/my.js';
|
||||||
import { teams } from '$lib/stores/teams.js';
|
import { teamsStore } from '$lib/stores/teams.js';
|
||||||
import { settings } from '$lib/stores/settings.js';
|
import { settings } from '$lib/stores/settings.js';
|
||||||
|
|
||||||
import DateFormat from './DateFormat.svelte';
|
import DateFormat from './DateFormat.svelte';
|
||||||
@ -31,7 +31,7 @@
|
|||||||
my.refresh((my) => {
|
my.refresh((my) => {
|
||||||
if (my && (my.exercices[exercice.id].tries != exercice.tries || my.exercices[exercice.id].solved_rank != exercice.solved_rank || my.exercices[exercice.id].solved_time != exercice.solved_time)) {
|
if (my && (my.exercices[exercice.id].tries != exercice.tries || my.exercices[exercice.id].solved_rank != exercice.solved_rank || my.exercices[exercice.id].solved_time != exercice.solved_time)) {
|
||||||
submitInProgress = false;
|
submitInProgress = false;
|
||||||
teams.refresh();
|
teamsStore.refresh();
|
||||||
} else if (i > 0) {
|
} else if (i > 0) {
|
||||||
setTimeout(waitDiff, (12-i)*50+440, i-1);
|
setTimeout(waitDiff, (12-i)*50+440, i-1);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user