Remove needless double negation in StartPlan
We used to store the numbers as sqlite presented the booleans, but now TypeOrm automatically converts it into bools for us so we don't need to.
This commit is contained in:
parent
2a868cc9ee
commit
3bf2193d46
|
@ -115,7 +115,7 @@ export default function StartPlan() {
|
||||||
if (!settings.alarm) return
|
if (!settings.alarm) return
|
||||||
const milliseconds = Number(minutes) * 60 * 1000 + Number(seconds) * 1000
|
const milliseconds = Number(minutes) * 60 * 1000 + Number(seconds) * 1000
|
||||||
const {vibrate, sound, noSound} = settings
|
const {vibrate, sound, noSound} = settings
|
||||||
const args = [milliseconds, !!vibrate, sound, !!noSound]
|
const args = [milliseconds, vibrate, sound, noSound]
|
||||||
NativeModules.AlarmModule.timer(...args)
|
NativeModules.AlarmModule.timer(...args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user