Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Mar 27, 2024
1 parent ec294fa commit c9ca6fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1790,8 +1790,8 @@ export function getCurrentNetwork(state) {
}

export function getIsNetworkSupportedByBlockaid(state) {
const currentNetwork = getCurrentNetwork(state);
const isSupported = SUPPORTED_CHAIN_IDS.includes(currentNetwork.chainId);
const currentChainId = getCurrentChainId(state);
const isSupported = SUPPORTED_CHAIN_IDS.includes(currentChainId);

return isSupported;
}
Expand Down
2 changes: 1 addition & 1 deletion ui/selectors/selectors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ describe('Selectors', () => {
};
const isSupported =
selectors.getIsNetworkSupportedByBlockaid(modifiedMockState);
expect(isSupported).toBe(true);
expect(isSupported).toBe(false);
});
});

Expand Down

0 comments on commit c9ca6fb

Please sign in to comment.