Skip to content

Commit 64e4d3c

Browse files
fix: remove unnecessary .catch() on synchronous persistNotificationList
The persistNotificationList function is synchronous and returns undefined, not a Promise. Calling .catch() on undefined caused catch error. Removed the .catch() since MMKV storage operations are synchronous.
1 parent a3b02c5 commit 64e4d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Navigation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export function RootNavigation() {
240240
// We still persist to storage for background/offline safety,
241241
// but we don't rely on it as the source of truth for the UI anymore.
242242
// The 'consumeStoredNotifications' will pick this up if the app restarts.
243-
persistNotificationList(deduped).catch(() => { });
243+
persistNotificationList(deduped);
244244

245245
dispatch(appendNotification(parsedPayload));
246246

0 commit comments

Comments
 (0)