diff --git a/app/components/UI/AssetOverview/AssetOverview.tsx b/app/components/UI/AssetOverview/AssetOverview.tsx index 7fe404f8505..c6db49b4dfc 100644 --- a/app/components/UI/AssetOverview/AssetOverview.tsx +++ b/app/components/UI/AssetOverview/AssetOverview.tsx @@ -188,7 +188,7 @@ const AssetOverview: React.FC = ({ const goToPortfolioBridge = useGoToBridge('TokenDetails'); - const goToBridge = process.env.MM_BRIDGE_UI_ENABLED === 'true' + const goToBridge = process.env.MM_BRIDGE_UI_ENABLED === 'true' ? handleBridgeNavigation : goToPortfolioBridge; diff --git a/app/components/UI/Bridge/index.js b/app/components/UI/Bridge/index.js index a8555bfc374..f6c1285f5a9 100644 --- a/app/components/UI/Bridge/index.js +++ b/app/components/UI/Bridge/index.js @@ -31,6 +31,6 @@ const BridgeView = () => { ); -} +}; export default BridgeView; diff --git a/app/components/Views/WalletActions/WalletActions.tsx b/app/components/Views/WalletActions/WalletActions.tsx index 1ac8b99d65b..c9cecff1ce2 100644 --- a/app/components/Views/WalletActions/WalletActions.tsx +++ b/app/components/Views/WalletActions/WalletActions.tsx @@ -247,7 +247,7 @@ const WalletActions = () => { const goToPortfolioBridge = useGoToBridge('TabBar'); - const goToBridge = process.env.MM_BRIDGE_UI_ENABLED === 'true' + const goToBridge = process.env.MM_BRIDGE_UI_ENABLED === 'true' ? handleBridgeNavigation : goToPortfolioBridge;