Skip to content

Commit 7b22c46

Browse files
committed
fix: errors.spec
1 parent 0a4a04e commit 7b22c46

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

app/scripts/metamask-controller.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4219,9 +4219,6 @@ export default class MetamaskController extends EventEmitter {
42194219
// TODO: Update @metamask/accounts-controller to support this.
42204220
this.accountOrderController.updateHiddenAccountsList([]);
42214221

4222-
// clear accounts in AccountTrackerController
4223-
this.accountTrackerController.clearAccounts();
4224-
42254222
this.txController.clearUnapprovedTransactions();
42264223
}
42274224

test/e2e/tests/metrics/state-snapshots/errors-after-init-opt-in-ui-state.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@
325325
"isUpdatingMetamaskNotifications": "boolean",
326326
"isFetchingMetamaskNotifications": "boolean",
327327
"isUpdatingMetamaskNotificationsAccount": "object",
328+
"isWalletResetInProgress": "boolean",
328329
"isCheckingAccountsPresence": "boolean",
329330
"isPushEnabled": "boolean",
330331
"fcmToken": "string",

ui/pages/unlock-page/unlock-page.component.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ class UnlockPage extends Component {
443443
onResetWallet = async () => {
444444
this.setState({ showLoginErrorModal: false });
445445
await this.props.resetWallet();
446-
this.props.history.replace(DEFAULT_ROUTE);
446+
await this.props.forceUpdateMetamaskState();
447+
this.props.history.replace(ONBOARDING_WELCOME_ROUTE);
447448
};
448449

449450
render() {

0 commit comments

Comments
 (0)