diff --git a/packages/neon/neon/lib/src/utils/global_options.dart b/packages/neon/neon/lib/src/utils/global_options.dart index e5d57616..01d93d90 100644 --- a/packages/neon/neon/lib/src/utils/global_options.dart +++ b/packages/neon/neon/lib/src/utils/global_options.dart @@ -118,9 +118,9 @@ class GlobalOptions extends OptionsCollection { ), ); - final allowed = pushNotificationsDistributor.values.containsKey(pushNotificationsDistributor.value); - pushNotificationsEnabled.enabled = allowed; - if (!allowed) { + final enabled = pushNotificationsDistributor.values.isNotEmpty; + pushNotificationsEnabled.enabled = enabled; + if (!enabled) { pushNotificationsDistributor.reset(); pushNotificationsEnabled.reset(); }