diff --git a/app/notifications/inApp/index.js b/app/notifications/inApp/index.js index aa85e8402..65fa854d1 100644 --- a/app/notifications/inApp/index.js +++ b/app/notifications/inApp/index.js @@ -152,6 +152,9 @@ class NotificationBadge extends React.Component { } getNavState = (state) => { + if (!state?.routes) { + return state; + } const value = state.routes[state.index]; if (value.state) { return this.getNavState(value.state);