Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Dec 11, 2024
1 parent ffadc04 commit 3233475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/Views/Asset/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ class Asset extends PureComponent {
const styles = createStyles(colors);
const asset = navigation && params;
const isSwapsFeatureLive = this.props.swapsIsLive;
const isNetworkAllowed = isSwapsAllowed(asset.chainId);
const isNetworkAllowed = isPortfolioViewEnabled()
? isSwapsAllowed(asset.chainId)
: isSwapsAllowed(chainId);

const isAssetAllowed =
asset.isETH || asset.address?.toLowerCase() in this.props.swapsTokens;
Expand Down

0 comments on commit 3233475

Please sign in to comment.