From 3233475d99bd09849c6c7884d2f194f52af87cf1 Mon Sep 17 00:00:00 2001 From: sahar-fehri Date: Wed, 11 Dec 2024 22:57:21 +0100 Subject: [PATCH] fix: fix --- app/components/Views/Asset/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/Views/Asset/index.js b/app/components/Views/Asset/index.js index 7a7ead2dea0..35abfa07df7 100644 --- a/app/components/Views/Asset/index.js +++ b/app/components/Views/Asset/index.js @@ -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;