From 3bf2193d465f6c8cee13a9ccde01c9d8fa538d88 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Wed, 2 Nov 2022 12:43:01 +1300 Subject: [PATCH] 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. --- StartPlan.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StartPlan.tsx b/StartPlan.tsx index 75b3c59..3379f4c 100644 --- a/StartPlan.tsx +++ b/StartPlan.tsx @@ -115,7 +115,7 @@ export default function StartPlan() { if (!settings.alarm) return const milliseconds = Number(minutes) * 60 * 1000 + Number(seconds) * 1000 const {vibrate, sound, noSound} = settings - const args = [milliseconds, !!vibrate, sound, !!noSound] + const args = [milliseconds, vibrate, sound, noSound] NativeModules.AlarmModule.timer(...args) }