|
@ -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(() => { |
|
|