diff --git a/src/libs/actions/PushNotification.ts b/src/libs/actions/PushNotification.ts index 1280b934989b..888892fdc188 100644 --- a/src/libs/actions/PushNotification.ts +++ b/src/libs/actions/PushNotification.ts @@ -6,11 +6,11 @@ import * as Device from './Device'; let isUserOptedInToPushNotifications = false; Onyx.connect({ key: ONYXKEYS.PUSH_NOTIFICATIONS_ENABLED, - callback: (val) => { - if (val === null) { + callback: (value) => { + if (value === null) { return; } - isUserOptedInToPushNotifications = val; + isUserOptedInToPushNotifications = value; }, });