add more handle if zero devided

This commit is contained in:
arifal
2025-02-18 03:40:20 +07:00
parent d4d0a485cd
commit 6c936d4c14

View File

@@ -138,7 +138,7 @@ class BigData {
// business documents
this.bigTotalBusiness = new Big(this.dataBusiness.total);
this.percentageResultBusiness =
this.bigTotalNonVerification <= 0
this.bigTotalNonVerification <= 0 || this.bigTotalBusiness <= 0
? 0
: this.bigTotalBusiness
.div(this.bigTotalNonVerification)