Updated number formatter util to return single span child, not multiple fragments

This commit is contained in:
mgabdev 2019-07-04 01:14:44 -04:00
parent b4b7506cec
commit a0da2e237c

View File

@ -5,6 +5,6 @@ export const shortNumberFormat = number => {
if (number < 1000) {
return <FormattedNumber value={number} />;
} else {
return <Fragment><FormattedNumber value={number / 1000} maximumFractionDigits={1} />K</Fragment>;
return <span><FormattedNumber value={number / 1000} maximumFractionDigits={1} />K</span>;
}
};