Skip to content

Commit

Permalink
Get opened notification from get initial notification (#820)
Browse files Browse the repository at this point in the history
save initialNotification in notifications
  • Loading branch information
DanielEliraz authored Feb 14, 2022
1 parent 7c34144 commit c628f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/NotificationsExampleApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function NotificationsExampleApp() {
const getInitialNotifaction = async () => {
const initialNotification = await Notifications.getInitialNotification();
if (initialNotification) {
setOpenedNotifications([initialNotification, ...openedNotifications]);
setNotifications([initialNotification, ...notifications]);
}
}

Expand Down

0 comments on commit c628f5b

Please sign in to comment.