diff --git a/stores/UTXOsStore.ts b/stores/UTXOsStore.ts index 8574bc466..04f3f60d6 100644 --- a/stores/UTXOsStore.ts +++ b/stores/UTXOsStore.ts @@ -27,6 +27,19 @@ export default class UTXOsStore { this.settingsStore = settingsStore; } + @action + public reset = () => { + this.error = false; + this.loading = false; + this.success = false; + this.loadingAccounts = false; + this.importingAccount = false; + this.errorMsg = ''; + this.accounts = []; + this.accountToImport = null; + this.utxos = []; + }; + getUtxosError = () => { this.error = true; this.loading = false; diff --git a/views/Wallet/Wallet.tsx b/views/Wallet/Wallet.tsx index d3cb6f3be..42068af3d 100644 --- a/views/Wallet/Wallet.tsx +++ b/views/Wallet/Wallet.tsx @@ -340,6 +340,7 @@ export default class Wallet extends React.Component { LightningAddressStore.reset(); LSPStore.reset(); ChannelBackupStore.reset(); + UTXOsStore.reset(); } LnurlPayStore.reset();