Unverified Commit f33e98b5 authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by GitHub
Browse files

[FIX] Close tablet modal (#1773)


Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent acf788ef
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment