Skip to content

Commit

Permalink
bugfix/hide protect wallet modal (#1783)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino authored Aug 18, 2020
1 parent 1367bc2 commit 7b823c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/UI/DrawerView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,11 @@ class DrawerView extends PureComponent {
componentDidUpdate() {
if (!this.props.passwordSet || !this.props.seedphraseBackedUp) {
const route = this.findBottomTabRouteNameFromNavigatorState(this.props.navigation.state);
if (['SetPasswordFlow', 'Webview'].includes(route)) return;
if (['SetPasswordFlow', 'Webview'].includes(route)) {
// eslint-disable-next-line react/no-did-update-set-state
this.state.showProtectWalletModal && this.setState({ showProtectWalletModal: false });
return;
}
let tokenFound = false;

this.props.tokens.forEach(token => {
Expand Down

0 comments on commit 7b823c0

Please sign in to comment.