add more handle if zero devided
This commit is contained in:
@@ -138,7 +138,7 @@ class BigData {
|
|||||||
// business documents
|
// business documents
|
||||||
this.bigTotalBusiness = new Big(this.dataBusiness.total);
|
this.bigTotalBusiness = new Big(this.dataBusiness.total);
|
||||||
this.percentageResultBusiness =
|
this.percentageResultBusiness =
|
||||||
this.bigTotalNonVerification <= 0
|
this.bigTotalNonVerification <= 0 || this.bigTotalBusiness <= 0
|
||||||
? 0
|
? 0
|
||||||
: this.bigTotalBusiness
|
: this.bigTotalBusiness
|
||||||
.div(this.bigTotalNonVerification)
|
.div(this.bigTotalNonVerification)
|
||||||
|
|||||||
Reference in New Issue
Block a user