Skip to content

Commit

Permalink
fix: remove wallets store action (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavomauricio committed Mar 20, 2024
1 parent 49e3b08 commit 67823ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const createShuttleStore: StateCreator<ShuttleStore> = (set, state) => ({

if (filters.providerId && filters.chainId) {
wallets = wallets.filter(
(wallet) => wallet.providerId !== filters.providerId && wallet.network.chainId !== filters.chainId,
(wallet) => wallet.providerId !== filters.providerId || wallet.network.chainId !== filters.chainId,
);
} else if (filters.providerId && !filters.chainId) {
wallets = wallets.filter((wallet) => wallet.providerId !== filters.providerId);
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const useShuttleStore = defineStore<
let wallets = this.wallets;
if (filters.providerId && filters.chainId) {
wallets = wallets.filter(
(wallet) => wallet.providerId !== filters.providerId && wallet.network.chainId !== filters.chainId,
(wallet) => wallet.providerId !== filters.providerId || wallet.network.chainId !== filters.chainId,
);
} else if (filters.providerId && !filters.chainId) {
wallets = wallets.filter((wallet) => wallet.providerId !== filters.providerId);
Expand Down

0 comments on commit 67823ca

Please sign in to comment.