From ff5b5b33cc38e585e695b929dc9dab7bfec55f01 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 28 May 2020 15:30:23 -0300 Subject: [PATCH] Trying to fix inapp --- app/notifications/inApp/index.js | 3 +++ 1 file changed, 3 insertions(+) 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);