|
@@ -125,7 +125,8 @@ const goToSummary = createAction(([set], gameId, clearSavedGame = true) => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-const setRoundSeconds = createAction(([set], roundSeconds) => {
|
|
|
+const updateRoundSeconds = createAction(([set, get], update) => {
|
|
|
+ const roundSeconds = update(get.roundSeconds());
|
|
|
set({ roundSeconds });
|
|
|
saveTimerToLocalStorage(roundSeconds);
|
|
|
});
|
|
@@ -138,5 +139,5 @@ export const dispatch = {
|
|
|
startRound,
|
|
|
submitGuess,
|
|
|
goToSummary,
|
|
|
- setRoundSeconds,
|
|
|
+ updateRoundSeconds,
|
|
|
};
|