correction to app badge multiply by 10 ui logic

This commit is contained in:
Paul Plant 2024-03-13 23:03:18 +01:00
parent 9c1af87ddb
commit c8dce268bc
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class SettingsViewNotificationsSettingsViewModel: SettingsViewModelProtocol {
// if unit is mmol and if show value in app badge is on and if showReadingInNotification is not on, then show also if to be multiplied by 10 yes or no
// (if showReadingInNotification is on, then badge counter will be set via notification, in this case we can use NSNumber so we don't need to multiply by 10)
if !UserDefaults.standard.bloodGlucoseUnitIsMgDl && UserDefaults.standard.showReadingInAppBadge && !UserDefaults.standard.showReadingInNotification {
if !UserDefaults.standard.bloodGlucoseUnitIsMgDl && UserDefaults.standard.showReadingInAppBadge {
return Setting.allCases.count
} else {
return Setting.allCases.count - 1