From f33e98b51610df37cdd52c579aee3d4c0ec373c5 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 28 Feb 2020 14:26:31 -0300 Subject: [PATCH] [FIX] Close tablet modal (#1773) Co-authored-by: Diego Mello --- app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index b9490474f..dddbea095 100644 --- a/app/index.js +++ b/app/index.js @@ -469,7 +469,7 @@ class CustomModalStack extends React.Component { closeModal(); return true; } - if (state && state.routes[state.index] && state.routes[state.index].routes.length > 1) { + if (state && state.routes[state.index] && state.routes[state.index].routes && state.routes[state.index].routes.length > 1) { navigation.goBack(); } return false;