fix fee display in activity fee

This commit is contained in:
tjs 2023-03-02 15:42:59 -05:00
parent 1d7b488cb3
commit 96f9945746
2 changed files with 5 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const getFee = (activity: any, mangoAccountAddress: string) => {
}
if (activity_type === 'openbook_trade') {
const { fee_cost, quote_symbol } = activity.activity_details
fee = { value: formatFee(fee_cost), symbol: quote_symbol }
fee = { value: fee_cost, symbol: quote_symbol }
}
return fee
}
@ -258,7 +258,9 @@ const ActivityFeedTable = ({
</span>
</Td>
<Td className="text-right font-mono">
{(Number(fee.value) * value).toFixed(5)}{' '}
{activity_type === 'perp'
? (Number(fee.value) * value).toFixed(5)
: fee.value}{' '}
<span className="font-body text-th-fgd-3">
{fee.symbol}
</span>

View File

@ -142,7 +142,7 @@ const formatTradeHistory = (
return tradeHistory.flat().map((event) => {
let trade
let market = selectedMarket
let time = 'Recent'
let time = ''
if (isSerumFillEvent(event)) {
trade = parseSerumEvent(event)
} else if (isPerpFillEvent(event)) {