Skip to content

Commit

Permalink
fix: fix token details navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Dec 12, 2024
1 parent 2f0cc61 commit 32e4932
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/components/Views/AssetOptions/AssetOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,17 @@ const AssetOptions = (props: Props) => {
networkConfigurations[networkId as Hex]?.rpcEndpoints?.[
networkConfigurations[networkId as Hex]?.defaultRpcEndpointIndex
];
let providerConfigToken;
if (isPortfolioViewEnabled()) {
providerConfigToken = createProviderConfig(
tokenNetworkConfig,
tokenRpcEndpoint,
);
} else {
providerConfigToken = providerConfig;
}

const providerConfigToken = createProviderConfig(
tokenNetworkConfig,
tokenRpcEndpoint,
);

const providerConfigTokenExplorerToken = isPortfolioViewEnabled()
? providerConfigToken
: providerConfig;
const providerConfigTokenExplorerToken = providerConfigToken;

return {
providerConfigTokenExplorer: providerConfigTokenExplorerToken,
Expand Down

0 comments on commit 32e4932

Please sign in to comment.