Skip to content

Commit a9795a5

Browse files
committed
fix: handle case of solve before joining
For some reason, typescript did not catch this type error.
1 parent 987e874 commit a9795a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const timeTakenByOpponents = derived(
6464
$users.map((u) => [
6565
u.id,
6666
u.solved
67-
? get(timeTakenByOpponents).get(u.id) ?? Date.now() - $problemStart
67+
? get(timeTakenByOpponents)?.get(u.id) ?? Date.now() - $problemStart
6868
: Date.now() - $problemStart,
6969
])
7070
);

0 commit comments

Comments
 (0)