Ensure timers don't run when alarms are disabled
This commit is contained in:
parent
3a718142e5
commit
f66c180768
|
@ -99,6 +99,7 @@ export default function StartPlan() {
|
||||||
(+weight > best.weight || (+reps > best.reps && +weight === best.weight))
|
(+weight > best.weight || (+reps > best.reps && +weight === best.weight))
|
||||||
)
|
)
|
||||||
toast("Great work King! That's a new record.")
|
toast("Great work King! That's a new record.")
|
||||||
|
if (!settings.alarm) return
|
||||||
const milliseconds =
|
const milliseconds =
|
||||||
Number(best.minutes) * 60 * 1000 + Number(best.seconds) * 1000
|
Number(best.minutes) * 60 * 1000 + Number(best.seconds) * 1000
|
||||||
const {vibrate, sound, noSound} = settings
|
const {vibrate, sound, noSound} = settings
|
||||||
|
|
|
@ -6,7 +6,6 @@ import {
|
||||||
Menu,
|
Menu,
|
||||||
ProgressBar,
|
ProgressBar,
|
||||||
RadioButton,
|
RadioButton,
|
||||||
Text,
|
|
||||||
useTheme,
|
useTheme,
|
||||||
} from 'react-native-paper'
|
} from 'react-native-paper'
|
||||||
import {Like} from 'typeorm'
|
import {Like} from 'typeorm'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user