Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Reload wallets list after deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
nop33 committed Aug 15, 2023
1 parent 5571a9a commit 29d30de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/global/globalSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const toggleLoading = (state: AppState, toggle: boolean, enableLoading?: boolean
if (enableLoading !== false) state.loading = toggle
}

const resetState = ({ theme, wallets }: AppState) => ({ ...initialState, wallets, theme })
const resetState = ({ theme }: AppState) => ({ ...initialState, wallets: WalletStorage.list(), theme })

const refreshWalletList = (state: AppState) => {
state.wallets = WalletStorage.list()
Expand Down

0 comments on commit 29d30de

Please sign in to comment.