Stuffety-stuff

This commit is contained in:
Stian Fredrik Aune
2020-05-20 13:21:42 +02:00
parent 486aa11e73
commit 41ca13af8a
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ export const CentreBoi = () => {
useKey(["H", "h"], () => showHide());
useKey("*", () => {
if (state === "started") {
if (state === "started" || state === "connected") {
toggleCooldown();
}
});
+3 -3
View File
@@ -53,9 +53,9 @@ export const StatusContextProvider = ({children}) => {
} else if (minutes < cooldownMin) {
if (state === "connected") {
setWorkout(await updateCooldownMins(workout, minutes));
}
setWorkout(await updateCooldownMins(workout, -1));
} else {
setWorkout(await updateCooldownMins(workout, -1));
}
}
}, [workout, workoutStatus, state]);