Update formattedCurrencyView.js

This commit is contained in:
uğur erdal 2019-01-31 15:34:24 +03:00 committed by GitHub
parent 904931d4f1
commit f9132561b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import React, { Fragment } from 'react';
import { connect } from 'react-redux';
const FormattedCurrency = ({ value, fixAt = 5, currency }) => {
const FormattedCurrency = ({ value, fixAt = 3, currency }) => {
const { currencyRate, currencySymbol } = currency;
const valueInCurrency = value * currencyRate;
const toFixedValue = valueInCurrency.toFixed(fixAt);