bnstooltips 1.18.6 → 1.18.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -213,7 +213,11 @@ function ReplaceIconsInHtmlString(htmlString) {
213
213
  }
214
214
  function GetStatDisplayValue(value, percent) {
215
215
  if (percent) {
216
- return value / 100 + "%";
216
+ var percentage = value / 100;
217
+ if (Number.isInteger(percentage)) {
218
+ return percentage.toFixed(1) + "%";
219
+ }
220
+ return percentage + "%";
217
221
  }
218
222
  return value.toString();
219
223
  }