mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-27 18:14:30 +01:00
Drop MutinyWallet before restore
This commit is contained in:
committed by
Paul Miller
parent
4f9f7eb69d
commit
b41b2e33e5
@@ -93,6 +93,7 @@ export type MegaStore = [
|
||||
setBetaWarned(): void;
|
||||
setTestFlightPromptDismissed(): void;
|
||||
toggleHodl(): void;
|
||||
dropMutinyWallet(): void;
|
||||
}
|
||||
];
|
||||
|
||||
@@ -404,6 +405,9 @@ export const Provider: ParentComponent = (props) => {
|
||||
const should_zap_hodl = !state.should_zap_hodl;
|
||||
localStorage.setItem("should_zap_hodl", should_zap_hodl.toString());
|
||||
setState({ should_zap_hodl });
|
||||
},
|
||||
dropMutinyWallet() {
|
||||
setState({ mutiny_wallet: undefined });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user