From 3cbf42eb9724a1f14a9312dfc47dc273323c01bf Mon Sep 17 00:00:00 2001 From: nikoferro Date: Tue, 1 Oct 2024 13:52:49 +0200 Subject: [PATCH] fix for asset overview --- app/components/UI/AssetOverview/AssetOverview.test.tsx | 2 +- app/components/UI/AssetOverview/AssetOverview.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/UI/AssetOverview/AssetOverview.test.tsx b/app/components/UI/AssetOverview/AssetOverview.test.tsx index 039d0412848..84b3363aef1 100644 --- a/app/components/UI/AssetOverview/AssetOverview.test.tsx +++ b/app/components/UI/AssetOverview/AssetOverview.test.tsx @@ -133,7 +133,7 @@ describe('AssetOverview', () => { expect(navigation.navigate).toHaveBeenCalledWith('Swaps', { params: { sourcePage: 'MainView', - sourceToken: '0x0000000000000000000000000000000000000000', + sourceToken: asset.address, }, screen: 'SwapsAmountView', }); diff --git a/app/components/UI/AssetOverview/AssetOverview.tsx b/app/components/UI/AssetOverview/AssetOverview.tsx index be31639263a..9e4f1eeaa41 100644 --- a/app/components/UI/AssetOverview/AssetOverview.tsx +++ b/app/components/UI/AssetOverview/AssetOverview.tsx @@ -45,7 +45,7 @@ import Routes from '../../../constants/navigation/Routes'; import TokenDetails from './TokenDetails'; import { RootState } from '../../../reducers'; import useGoToBridge from '../Bridge/utils/useGoToBridge'; -import SwapsController, { swapsUtils } from '@metamask/swaps-controller'; +import SwapsController from '@metamask/swaps-controller'; import { MetaMetricsEvents } from '../../../core/Analytics'; import { getDecimalChainId } from '../../../util/networks'; import { useMetrics } from '../../../components/hooks/useMetrics';