We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a403e6e commit cc994a8Copy full SHA for cc994a8
2 files changed
apps/mobile/src/store/action/hooks.ts
@@ -67,6 +67,6 @@ export const useIsActionDataDirty = () => {
67
68
export const useHasNotificationActions = () => {
69
return useActionStore((state) => {
70
- return state.rules.some((rule) => !!rule.result.newEntryNotification)
+ return state.rules.some((rule) => !!rule.result.newEntryNotification && !rule.result.disabled)
71
})
72
}
apps/mobile/src/store/messaging/hooks.ts
@@ -40,9 +40,9 @@ export function useMessagingToken() {
40
41
42
useEffect(() => {
43
- if (!whoami || !hasNotificationActions) return
+ if (!whoami?.id || !hasNotificationActions) return
44
mutate()
45
- }, [hasNotificationActions, mutate, whoami])
+ }, [hasNotificationActions, mutate, whoami?.id])
46
47
48
export function useMessaging() {
0 commit comments