Skip to content

Commit

Permalink
fix: removed incorrect round off
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed Jun 30, 2022
1 parent 2ae4742 commit 8fe2feb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/p2p/src/components/order-details/order-details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@ const OrderDetails = observer(({ onPageReturn }) => {
? localize('Buy {{offered_currency}} order', { offered_currency: account_currency })
: localize('Sell {{offered_currency}} order', { offered_currency: account_currency });

const decimal_place = setDecimalPlaces(rate, 6);

if (sendbird_store.should_show_chat_on_orders) {
return <Chat />;
}

const display_payment_amount = removeTrailingZeros(
formatMoney(local_currency, amount_display * roundOffDecimal(rate, decimal_place), true, decimal_place)
formatMoney(local_currency, amount_display * roundOffDecimal(rate, setDecimalPlaces(rate, 6)), true)
);

return (
Expand Down

0 comments on commit 8fe2feb

Please sign in to comment.