mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 11:28:51 +01:00
[FLASK] Clear snap state on restore (#16228)
* Clear snap state on restore * Fix lint
This commit is contained in:
parent
359f782e7e
commit
863cda6c88
@ -2144,6 +2144,11 @@ export default class MetamaskController extends EventEmitter {
|
||||
// clear permissions
|
||||
this.permissionController.clearState();
|
||||
|
||||
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
||||
// Clear snap state
|
||||
this.snapController.clearState();
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
|
||||
// clear accounts in accountTracker
|
||||
this.accountTracker.clearAccounts();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user