mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-09 09:14:31 +01:00
Drop MutinyWallet before restore
This commit is contained in:
committed by
Paul Miller
parent
4f9f7eb69d
commit
b41b2e33e5
@@ -134,6 +134,7 @@ function TwelveWordsEntry() {
|
||||
console.log("Mutiny wallet loaded, stopping");
|
||||
try {
|
||||
await state.mutiny_wallet.stop();
|
||||
actions.dropMutinyWallet();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
@@ -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