Skip to content

Commit

Permalink
problem: repeated printing of problem to console
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Oct 30, 2023
1 parent 8467b8a commit 57ed3b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/problems/ProblemComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
let openState: boolean;
$: focusProblem = openState ? "problem focus-problem" : "problem";
$: if (openState) {
let printed = new Map()
$: if (openState && !printed.get(problem.UID)) {
printed.set(problem.UID, true)
console.log(problem)
}
</script>
Expand Down

0 comments on commit 57ed3b8

Please sign in to comment.