Skip to content

Commit

Permalink
Fix split flap display that no longer stopped spinning
Browse files Browse the repository at this point in the history
  • Loading branch information
floscher committed May 4, 2023
1 parent 20d5d13 commit 7a30398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/SplitFlap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function stepsRemaining(currentChar: string, targetChar: string): number {
if (targetIndex < 0 || currentIndex < 0) {
return 1;
}
if (targetIndex > currentIndex) {
if (targetIndex >= currentIndex) {
return targetIndex - currentIndex;
} else {
return alphabet.length - currentIndex + targetIndex;
Expand Down

0 comments on commit 7a30398

Please sign in to comment.