mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-05 12:36:31 +03:00
Update formattedCurrencyView.js
This commit is contained in:
parent
904931d4f1
commit
f9132561b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user