Skip to content

Commit

Permalink
Merge pull request idurar#858 from Gregsai/issues/fix-tag-value-when-…
Browse files Browse the repository at this point in the history
…equal-to-zero

Fix: display of the tag when the value is zero idurar#857
  • Loading branch information
salahlalami authored Dec 1, 2023
2 parents 01d996f + e10b2c6 commit 2d8e81b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/modules/DashboardModule/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function DashboardModule() {
}
prefix={translate('This month')}
isLoading={isLoading}
tagContent={result?.total && moneyFormatter({ amount: result?.total })}
tagContent={moneyFormatter({ amount: result?.total })}
/>
);
});
Expand Down Expand Up @@ -147,9 +147,7 @@ export default function DashboardModule() {
tagColor={'red'}
prefix={translate('Not Paid')}
isLoading={invoiceLoading}
tagContent={
invoiceResult?.total_undue && moneyFormatter({ amount: invoiceResult?.total_undue })
}
tagContent={moneyFormatter({ amount: invoiceResult?.total_undue })}
/>
</Row>
<div className="space30"></div>
Expand Down

0 comments on commit 2d8e81b

Please sign in to comment.