Updated number formatter util to return single span child, not multiple fragments
This commit is contained in:
parent
b4b7506cec
commit
a0da2e237c
|
@ -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>;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue