Skip to content

Commit

Permalink
formatted received amount (#5913)
Browse files Browse the repository at this point in the history
  • Loading branch information
farrah-deriv committed Jul 6, 2022
1 parent b9162dc commit fab89d2
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Text } from '@deriv/components';
import { formatMoney } from '@deriv/shared';
import { getFormattedText } from '@deriv/shared';
import { Localize } from 'Components/i18next';
import { roundOffDecimal } from 'Utils/format-value.js';
import { useStores } from 'Stores';
Expand All @@ -18,12 +18,10 @@ const BuySellFormReceiveAmount = () => {
)}
</Text>
<Text as='p' color='general' line_height='m' size='xs' weight='bold'>
{formatMoney(
buy_sell_store?.advert?.local_currency,
{getFormattedText(
roundOffDecimal(buy_sell_store?.receive_amount),
true
)}{' '}
{buy_sell_store?.advert?.local_currency}
buy_sell_store?.advert?.local_currency
)}
</Text>
</React.Fragment>
);
Expand Down

0 comments on commit fab89d2

Please sign in to comment.