diff --git a/src/app/(app)/my-orders/[id]/page.tsx b/src/app/(app)/my-orders/[id]/page.tsx index 22451cf..a448643 100644 --- a/src/app/(app)/my-orders/[id]/page.tsx +++ b/src/app/(app)/my-orders/[id]/page.tsx @@ -506,7 +506,7 @@ function SubmissionRow({ useEffect(() => { if (currentBalance !== undefined) { let balanceBeforeThisOrder = currentBalance - const shouldCountBill = sub.bill != null && (sub.order.status === 'CLOSE' || sub.payment_status === 'LUNAS') + const shouldCountBill = sub.bill != null && (isClosed || sub.payment_status === 'LUNAS') if (shouldCountBill) { const diff = (sub.paid_amount || 0) - (sub.bill || 0) balanceBeforeThisOrder -= diff