wyq 4 vuotta sitten
vanhempi
commit
daffe631a1
1 muutettua tiedostoa jossa 10 lisäystä ja 2 poistoa
  1. 10 2
      src/js/staticInfo.js

+ 10 - 2
src/js/staticInfo.js

@@ -315,9 +315,17 @@ function getResult(pushInfo, textType) {
         for (var i = 0; i < pushInfo.length; i++) {
           if (pushInfo[i].content.max >= num >= pushInfo[i].content.min) {
             if (tmp) {
-              result = pushInfo[i].result + '(' + num + ')' + ';' + tmp
+              if (num == 0){
+                result = pushInfo[i].result + ';' + tmp
+              }else{
+                result = pushInfo[i].result + '(' + num + ')' + ';' + tmp
+              }
             } else {
-              result = pushInfo[i].result + '(' + num + ')'
+              if (num == 0) {
+                result = pushInfo[i].result
+              } else {
+                result = pushInfo[i].result + '(' + num + ')'
+              }
             }
           }
         }