fixed wrog key issue

This commit is contained in:
--gloabal 2019-10-13 13:33:18 +03:00
parent 3c4400737e
commit c14141f387

View File

@ -6,7 +6,7 @@ const FormattedCurrency = ({ value, fixAt = 3, currency }) => {
const valueInCurrency = value * currencyRate;
const toFixedValue = valueInCurrency.toFixed(fixAt);
return <Fragment key="result-val">{`${currencySymbol} ${toFixedValue}`}</Fragment>;
return <Fragment key={toFixedValue.toString()}>{`${currencySymbol} ${toFixedValue}`}</Fragment>;
};
const mapStateToProps = state => ({