Fix double negative
This commit is contained in:
parent
1f797309a6
commit
4f6615c392
|
@ -202,14 +202,14 @@ function DailyProfitAndBalance(props: {
|
||||||
return (
|
return (
|
||||||
<div className={clsx(className, 'text-lg')}>
|
<div className={clsx(className, 'text-lg')}>
|
||||||
<span className={clsx(profit >= 0 ? 'text-green-500' : 'text-red-500')}>
|
<span className={clsx(profit >= 0 ? 'text-green-500' : 'text-red-500')}>
|
||||||
{profit >= 0 ? '+' : '-'}
|
{profit >= 0 && '+'}
|
||||||
{formatMoney(profit)}
|
{formatMoney(profit)}
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
profit and{' '}
|
profit and{' '}
|
||||||
<span
|
<span
|
||||||
className={clsx(balanceChange >= 0 ? 'text-green-500' : 'text-red-500')}
|
className={clsx(balanceChange >= 0 ? 'text-green-500' : 'text-red-500')}
|
||||||
>
|
>
|
||||||
{balanceChange >= 0 ? '+' : '-'}
|
{balanceChange >= 0 && '+'}
|
||||||
{formatMoney(balanceChange)}
|
{formatMoney(balanceChange)}
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
balance today
|
balance today
|
||||||
|
|
Loading…
Reference in New Issue
Block a user