Skip to content

Commit

Permalink
history: preview format
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof committed Jul 12, 2024
1 parent a1ae266 commit 32a3ce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/HistoryPage/Received.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ interface AmountProps {
export function Received(props: AmountProps) {
const { inputAmount, outputAmount, symbol = '', decimals = 9 } = props;

let outputFull = '-';
let output = '-';

if (outputAmount !== undefined && outputAmount !== null) {
const formattedResult = formatAmount(outputAmount, decimals);
outputFull = formattedResult.full;
output = formattedResult.preview;
}

const serviceFeeAmount = getServiceFeeAmount(
Expand All @@ -26,7 +26,7 @@ export function Received(props: AmountProps) {

return (
<div className="flex gap-2 items-center">
{outputFull} {symbol}
{output} {symbol}
<ServiceFeeTooltip
inputAmount={formatAmount(inputAmount, decimals).full}
serviceFeeAmount={formatAmount(serviceFeeAmount, decimals).full}
Expand Down

0 comments on commit 32a3ce5

Please sign in to comment.