Skip to content

Commit

Permalink
feat: opt-chain selector
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Sep 30, 2024
1 parent 5a3b1ae commit ac172d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/slices/common-selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const selectWalletAccountIds = createDeepEqualOutputSelector(
selectWalletId,
(state: ReduxState) => state.portfolio.wallet.byId,
(walletId, walletById): AccountId[] => {
const walletAccountIds = (walletId && walletById[walletId]) ?? []
const walletAccountIds = walletById?.[walletId ?? ''] ?? []
return walletAccountIds
},
)
Expand Down

0 comments on commit ac172d0

Please sign in to comment.