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
1 changed files with 1 additions and 1 deletions

View File

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