Code style fixes

This commit is contained in:
Bartłomiej Głownia 2022-03-23 18:31:44 +01:00
parent f2e297ce39
commit 1db7919875
2 changed files with 2 additions and 5 deletions

View File

@ -84,7 +84,3 @@ const Markets = () => {
};
export default Markets;
// const TwoMarkets = () => (<><div style={{height: '50%'}}><Markets /></div><div style={{height: '50%'}}><Markets /></div></>)
// export default TwoMarkets;

View File

@ -6,8 +6,9 @@ export interface IPriceCellProps {
}
export const PriceCell = ({ value, valueFormatted }: IPriceCellProps) => {
if ((!value && value !== 0) || isNaN(Number(value)))
if ((!value && value !== 0) || isNaN(Number(value))) {
return <span data-testid="price">-</span>;
}
return (
<span className="font-mono" data-testid="price">
<FlashCell value={Number(value)}>{valueFormatted}</FlashCell>