Skip to content

Commit

Permalink
fix(tx list): fees paid units
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 committed Oct 18, 2024
1 parent 32ff15e commit 3ae7bf1
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/components/Shared/Transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,20 @@ export const Transactions: React.FC<TransactionsProps> = ({
column={column}
/>
),
cell: ({ row }) => {
return row.original.fees_paid ? (
<p className="text-right">
{calculatePrettyBalance(
row.original.fees_paid,
row.original.gas_metadata?.contract_decimals,
)}
cell: ({ row }) => (
<div className="text-right">
{calculatePrettyBalance(
row.original.fees_paid ?? 0,
row.original.gas_metadata?.contract_decimals,
true,
4,
)}{" "}
{row.original.gas_metadata?.contract_ticker_symbol}
<p className="text-xs opacity-80">
{row.original.pretty_gas_quote}
</p>
) : (
<p className="text-center">-</p>
);
},
</div>
),
},
];

Expand Down

0 comments on commit 3ae7bf1

Please sign in to comment.