Skip to content

Commit

Permalink
style: default live wpm/burst/acc to mini style when using bar timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Apr 30, 2024
1 parent 3dda3f9 commit 7cfd434
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/ts/test/live-acc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function show(): void {
if (!Config.showLiveAcc) return;
if (!TestState.isActive) return;
if (state) return;
if (Config.timerStyle === "mini") {
if (Config.timerStyle === "mini" || Config.timerStyle === "bar") {
$("#miniTimerAndLiveWpm .acc")
.stop(true, false)
.removeClass("hidden")
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ts/test/live-burst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function show(): void {
if (!Config.showLiveBurst) return;
if (!TestState.isActive) return;
if (state) return;
if (Config.timerStyle === "mini") {
if (Config.timerStyle === "mini" || Config.timerStyle === "bar") {
$("#miniTimerAndLiveWpm .burst")
.stop(true, false)
.removeClass("hidden")
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ts/test/live-wpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function show(): void {
if (!Config.showLiveWpm) return;
if (!TestState.isActive) return;
if (state) return;
if (Config.timerStyle === "mini") {
if (Config.timerStyle === "mini" || Config.timerStyle === "bar") {
$(miniLiveWpmElement)
.stop(true, false)
.removeClass("hidden")
Expand Down

0 comments on commit 7cfd434

Please sign in to comment.