Skip to content

Commit

Permalink
Fix multi display.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 18, 2024
1 parent 4687791 commit 2cd091b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/elements/CompetitorScrambleDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ export class CompetitorScrambleDisplay extends HTMLElement {
}

#toggleShowAllSubScrambles(forceShow?: boolean) {
console.log("toggleShowAllSubScrambles");
if (typeof forceShow === "undefined") {
// biome-ignore lint/style/noParameterAssign: 🤷
forceShow = this.#showingAllSubScrambles();
forceShow = !this.#showingAllSubScrambles();
}
console.log({ forceShow });

this.querySelector("twisty-player").hidden = forceShow;
this.classList.toggle("show-multi-grid", forceShow);
Expand Down

0 comments on commit 2cd091b

Please sign in to comment.