Skip to content

Commit

Permalink
rename _outputAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed Jun 12, 2024
1 parent 7752f88 commit 210e62e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function ClaimRedeem() {
});
}

const _outputAmount = formatAmount(
const formattedOutputAmount = formatAmount(
outputAmount || '0',
selectedToken?.decimals,
).full;
Expand Down Expand Up @@ -164,7 +164,7 @@ export function ClaimRedeem() {
handleRedeem();
}}
>
{Intl.t('index.loading-box.claim')} {_outputAmount} {symbol}{' '}
{Intl.t('index.loading-box.claim')} {formattedOutputAmount} {symbol}{' '}
<Tooltip
customIconColor="neutral"
customClass="z-10"
Expand Down
9 changes: 6 additions & 3 deletions src/pages/IndexPage/Layouts/LoadingLayout/SuccessLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export function SuccessLayout() {

const currentTxID = massaToEvm ? currentRedeemOperation?.outputId : mintTxId;

const _outputAmount = formatAmount(outputAmount || '0', token?.decimals).full;
const formattedOutputAmount = formatAmount(
outputAmount || '0',
token?.decimals,
).full;

const redirectToFaq = getFaqUrl();

Expand All @@ -60,7 +63,7 @@ export function SuccessLayout() {
? Intl.t('index.loading-box.redeemed')
: Intl.t('index.loading-box.bridged')}
<div className="mas-subtitle p-2">
{_outputAmount} {massaToEvm ? token.symbol : token.symbolEVM}
{formattedOutputAmount} {massaToEvm ? token.symbol : token.symbolEVM}
</div>
<div>
{Intl.t('index.loading-box.from-to', {
Expand All @@ -70,7 +73,7 @@ export function SuccessLayout() {
</div>
<div>
{Intl.t('index.loading-box.received-tokens', {
amount: `${_outputAmount} ${
amount: `${formattedOutputAmount} ${
massaToEvm ? token.symbolEVM : token.symbol
}`,
})}
Expand Down

0 comments on commit 210e62e

Please sign in to comment.