Fix double negative

This commit is contained in:
James Grugett 2022-09-12 00:36:56 -05:00
parent 1f797309a6
commit 4f6615c392

View File

@ -202,14 +202,14 @@ function DailyProfitAndBalance(props: {
return (
<div className={clsx(className, 'text-lg')}>
<span className={clsx(profit >= 0 ? 'text-green-500' : 'text-red-500')}>
{profit >= 0 ? '+' : '-'}
{profit >= 0 && '+'}
{formatMoney(profit)}
</span>{' '}
profit and{' '}
<span
className={clsx(balanceChange >= 0 ? 'text-green-500' : 'text-red-500')}
>
{balanceChange >= 0 ? '+' : '-'}
{balanceChange >= 0 && '+'}
{formatMoney(balanceChange)}
</span>{' '}
balance today