@ -115,7 +115,7 @@ export function useTransactionDisplayData (transactionGroup) {
// The primary title of the Tx that will be displayed in the activity list
// The primary title of the Tx that will be displayed in the activity list
let title
let title
const { swapTokenValue , swapTokenFiatAmount , isViewingReceivedTokenFromSwap } = useSwappedTokenValue ( transactionGroup , currentAsset )
const { swapTokenValue , isNegative , swapTokenFiatAmount , isViewingReceivedTokenFromSwap } = useSwappedTokenValue ( transactionGroup , currentAsset )
// There are seven types of transaction entries that are currently differentiated in the design
// There are seven types of transaction entries that are currently differentiated in the design
// 1. Signature request
// 1. Signature request
@ -145,8 +145,13 @@ export function useTransactionDisplayData (transactionGroup) {
: initialTransaction . sourceTokenSymbol
: initialTransaction . sourceTokenSymbol
primaryDisplayValue = swapTokenValue
primaryDisplayValue = swapTokenValue
secondaryDisplayValue = swapTokenFiatAmount
secondaryDisplayValue = swapTokenFiatAmount
prefix = isViewingReceivedTokenFromSwap ? '+' : '-'
if ( isNegative ) {
prefix = ''
} else if ( isViewingReceivedTokenFromSwap ) {
prefix = '+'
} else {
prefix = '-'
}
} else if ( transactionCategory === SWAP _APPROVAL ) {
} else if ( transactionCategory === SWAP _APPROVAL ) {
category = TRANSACTION _CATEGORY _APPROVAL
category = TRANSACTION _CATEGORY _APPROVAL
title = t ( 'swapApproval' , [ primaryTransaction . sourceTokenSymbol ] )
title = t ( 'swapApproval' , [ primaryTransaction . sourceTokenSymbol ] )