Drop MutinyWallet before restore

This commit is contained in:
Tony Giorgio
2023-12-21 15:54:37 -06:00
committed by Paul Miller
parent 4f9f7eb69d
commit b41b2e33e5
4 changed files with 10 additions and 5 deletions

View File

@@ -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 });
}
};