From 652f4156abf43341a54c817054cde4317844abb9 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Mon, 6 Nov 2023 09:11:57 +0100 Subject: [PATCH] fix(neon): Fix UnifiedPush distributors not showing up in settings Signed-off-by: jld3103 --- packages/neon/neon/lib/src/utils/global_options.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }