diff --git a/src/components/transactions/DebtSwitch/DebtSwitchModalDetails.tsx b/src/components/transactions/DebtSwitch/DebtSwitchModalDetails.tsx index 13f9541e55..a0d08817d8 100644 --- a/src/components/transactions/DebtSwitch/DebtSwitchModalDetails.tsx +++ b/src/components/transactions/DebtSwitch/DebtSwitchModalDetails.tsx @@ -11,7 +11,7 @@ import { TokenIcon } from 'src/components/primitives/TokenIcon'; import { TextWithTooltip } from 'src/components/TextWithTooltip'; import { DetailsIncentivesLine } from 'src/components/transactions/FlowCommons/TxModalDetails'; import { CustomMarket } from 'src/ui-config/marketsConfig'; -import { weightedAverageAPY } from 'src/utils/ghoUtilities'; +import { displayGhoForMintableMarket, weightedAverageAPY } from 'src/utils/ghoUtilities'; import { ComputedUserReserveData } from '../../../hooks/app-data-provider/useAppDataProvider'; import { GhoRange } from './DebtSwitchModalContent'; @@ -89,7 +89,10 @@ export const DebtSwitchModalDetails = ({ ) : ( <> - {switchSource.reserve.symbol === 'GHO' && ghoData ? ( + {displayGhoForMintableMarket({ + symbol: switchSource.reserve.symbol, + currentMarket, + }) && ghoData ? ( )} {ArrowRightIcon} - {switchTarget.reserve.symbol === 'GHO' && ghoData ? ( + {displayGhoForMintableMarket({ + symbol: switchTarget.reserve.symbol, + currentMarket, + }) && ghoData ? (