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))
|
||||
)
|
||||
toast("Great work King! That's a new record.")
|
||||
if (!settings.alarm) return
|
||||
const milliseconds =
|
||||
Number(best.minutes) * 60 * 1000 + Number(best.seconds) * 1000
|
||||
const {vibrate, sound, noSound} = settings
|
||||
|
|
|
@ -6,7 +6,6 @@ import {
|
|||
Menu,
|
||||
ProgressBar,
|
||||
RadioButton,
|
||||
Text,
|
||||
useTheme,
|
||||
} from 'react-native-paper'
|
||||
import {Like} from 'typeorm'
|
||||
|
|
Loading…
Reference in New Issue
Block a user