[FIX] Close tablet modal (#1773)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-02-28 14:26:31 -03:00 committed by GitHub
parent acf788ef8c
commit f33e98b516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ class CustomModalStack extends React.Component {
closeModal(); closeModal();
return true; 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(); navigation.goBack();
} }
return false; return false;