Skip to content

Commit

Permalink
update getIsTokenNetworkFilterEqualCurrentNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Dec 10, 2024
1 parent ec3c973 commit 04f0f31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1076,8 +1076,7 @@ export function getPetnamesEnabled(state) {

export function getIsTokenNetworkFilterEqualCurrentNetwork(state) {
const chainId = getCurrentChainId(state);
const { tokenNetworkFilter: tokenNetworkFilterValue } = getPreferences(state);
const tokenNetworkFilter = tokenNetworkFilterValue || {};
const tokenNetworkFilter = getTokenNetworkFilter(state);
if (
Object.keys(tokenNetworkFilter).length === 1 &&
Object.keys(tokenNetworkFilter)[0] === chainId
Expand Down

0 comments on commit 04f0f31

Please sign in to comment.