Skip to content

Commit

Permalink
fix: clean state usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zoruka committed Nov 21, 2024
1 parent 2ec6221 commit 1055565
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/appkit/src/store/ProviderUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const CLEAN_PROVIDERS_STATE = {
}

const state = proxy<ProviderStoreUtilState>({
providers: CLEAN_PROVIDERS_STATE,
providerIds: CLEAN_PROVIDERS_STATE
providers: { ...CLEAN_PROVIDERS_STATE },
providerIds: { ...CLEAN_PROVIDERS_STATE }
})

export const ProviderUtil = {
Expand Down Expand Up @@ -64,8 +64,8 @@ export const ProviderUtil = {
},

reset() {
state.providers = CLEAN_PROVIDERS_STATE
state.providerIds = CLEAN_PROVIDERS_STATE
state.providers = { ...CLEAN_PROVIDERS_STATE }
state.providerIds = { ...CLEAN_PROVIDERS_STATE }
},

resetChain(chainNamespace: ChainNamespace) {
Expand Down

0 comments on commit 1055565

Please sign in to comment.