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(["H", "h"], () => showHide());
useKey("*", () => { useKey("*", () => {
if (state === "started") { if (state === "started" || state === "connected") {
toggleCooldown(); toggleCooldown();
} }
}); });
+2 -2
View File
@@ -53,10 +53,10 @@ export const StatusContextProvider = ({children}) => {
} else if (minutes < cooldownMin) { } else if (minutes < cooldownMin) {
if (state === "connected") { if (state === "connected") {
setWorkout(await updateCooldownMins(workout, minutes)); setWorkout(await updateCooldownMins(workout, minutes));
} } else {
setWorkout(await updateCooldownMins(workout, -1)); setWorkout(await updateCooldownMins(workout, -1));
} }
}
}, [workout, workoutStatus, state]); }, [workout, workoutStatus, state]);
useEffect(() => { useEffect(() => {