From 241c75890c3014bf9215328c2d851215b4aca2bd Mon Sep 17 00:00:00 2001 From: Farrah Mae Ochoa Date: Wed, 6 Jul 2022 15:52:42 +0400 Subject: [PATCH] formatted received amount --- .../buy-sell/buy-sell-form-receive-amount.jsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/p2p/src/components/buy-sell/buy-sell-form-receive-amount.jsx b/packages/p2p/src/components/buy-sell/buy-sell-form-receive-amount.jsx index b3616ce69a0b..29f55f04b6c0 100644 --- a/packages/p2p/src/components/buy-sell/buy-sell-form-receive-amount.jsx +++ b/packages/p2p/src/components/buy-sell/buy-sell-form-receive-amount.jsx @@ -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'; @@ -18,12 +18,10 @@ const BuySellFormReceiveAmount = () => { )} - {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 + )} );