Disable timers if rest time is set to zero - 1.134

This commit is contained in:
Brandon Presley 2023-03-24 19:14:55 +13:00
parent 0e7920bde9
commit 288ae1ae0c
3 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ export default function EditSet() {
const first = await setRepo.findOne({where: {name: value}})
const milliseconds =
(first?.minutes ?? 3) * 60 * 1000 + (first?.seconds ?? 0) * 1000
NativeModules.AlarmModule.timer(milliseconds)
if (milliseconds) NativeModules.AlarmModule.timer(milliseconds)
},
[settings],
)

View File

@ -41,8 +41,8 @@ android {
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 36159
versionName "1.133"
versionCode 36160
versionName "1.134"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
if (isNewArchitectureEnabled()) {

View File

@ -1,6 +1,6 @@
{
"name": "massive",
"version": "1.133",
"version": "1.134",
"private": true,
"license": "GPL-3.0-only",
"scripts": {