RO Closer bug fixes.

This commit is contained in:
Patrick Fic
2024-04-04 20:41:39 -07:00
parent c4d39cf3d3
commit 96242a555a
10 changed files with 340 additions and 154 deletions

View File

@@ -40,7 +40,7 @@ export function JobCloseRoGuardProfit({ job, jobRO, bodyshop, form, warningCallb
}, [job, total]);
useEffect(() => {
if (balance.getAmount !== 0) {
if (balance.getAmount() !== 0) {
warningCallback({ key: 'ar', warning: t('jobs.labels.outstanding_ar') });
}
}, [balance, t, warningCallback]);
@@ -54,7 +54,7 @@ export function JobCloseRoGuardProfit({ job, jobRO, bodyshop, form, warningCallb
>
{balance.toFormat()}
</DataLabel>
{balance.getAmount !== 0 && (
{balance.getAmount() !== 0 && (
<Alert
style={{ margin: '8px 0px' }}
type="warning"