Skip to content

Commit

Permalink
Reset previous word animation on completed game
Browse files Browse the repository at this point in the history
  • Loading branch information
didoesdigital committed Jun 20, 2022
1 parent e93d24e commit 4db1bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/games/SHUFL/SHUFLInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function SHUFLInput({
}
aria-hidden="true"
>
{previousCompletedPhraseAsTyped}
{round > 1 ? previousCompletedPhraseAsTyped : ""}
</kbd>
</CSSTransition>
</TransitionGroup>
Expand Down
1 change: 1 addition & 0 deletions src/pages/games/SHUFL/gameReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const gameReducer = (state, action) => {
? {
...state,
gameComplete: true,
roundIndex: 0,
}
: {
...state,
Expand Down

0 comments on commit 4db1bff

Please sign in to comment.