Skip to content

Commit

Permalink
fix: fix sticky autodetection banner
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Dec 10, 2024
1 parent 1c2755c commit d546ce6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ui/components/app/detected-token/detected-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,16 @@ const DetectedToken = ({ setShowDetectedTokens }) => {

const promises = Object.entries(groupedByChainId).map(
async ([chainId, tokens]) => {
const chainConfig = allNetworks[chainId];
const { defaultRpcEndpointIndex } = chainConfig;
const { networkClientId: networkInstanceId } =
chainConfig.rpcEndpoints[defaultRpcEndpointIndex];
const { defaultRpcEndpointIndex, rpcEndpoints } =
allNetworks[chainId];
const networkInstanceId =
rpcEndpoints[defaultRpcEndpointIndex].networkClientId;

const tokensToIgnore = tokens.map((token) => token.address);

await dispatch(
ignoreTokens({
tokensToIgnore: tokens,
tokensToIgnore,
dontShowLoadingIndicator: true,
networkClientId: networkInstanceId,
}),
Expand Down

0 comments on commit d546ce6

Please sign in to comment.