From 7b823c077ad8c5866a24bb223c9ac9ca73f8446c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Mi=C3=B1o?= Date: Tue, 18 Aug 2020 17:22:37 -0400 Subject: [PATCH] bugfix/hide protect wallet modal (#1783) --- app/components/UI/DrawerView/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/UI/DrawerView/index.js b/app/components/UI/DrawerView/index.js index e517430c1bb..c5fedd818ec 100644 --- a/app/components/UI/DrawerView/index.js +++ b/app/components/UI/DrawerView/index.js @@ -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 => {