Skip to content

Commit

Permalink
fix: payment status check function
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Jan 5, 2022
1 parent 75658b0 commit 89d1b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function getInvoiceStatus(doc) {
if (!doc.submitted) {
status = 'Draft';
}
if (doc.submitted === 1 && doc.outstandingAmount === 0.0) {
if (doc.submitted === 1 && doc.outstandingAmount.isZero()) {
status = 'Paid';
}
if (doc.cancelled === 1) {
Expand Down

0 comments on commit 89d1b43

Please sign in to comment.