Ensure timers don't run when alarms are disabled

This commit is contained in:
Brandon Presley 2022-11-12 18:22:58 +13:00
parent 3a718142e5
commit f66c180768
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -6,7 +6,6 @@ import {
Menu,
ProgressBar,
RadioButton,
Text,
useTheme,
} from 'react-native-paper'
import {Like} from 'typeorm'