sbd-npm 1.1.61 → 1.1.62

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -364,9 +364,11 @@ const Util = {
364
364
  $(this).html(Util.year_price_rate(item["price"], item["high_52week"]));
365
365
  });
366
366
  }
367
- $(".holder_" + code).each(function () {
368
- $(this).html(Util.pack_holder_num(item));
369
- });
367
+ if (item["holder_num"] && item["holder_num"] > 0 && item["pre_holder_num"]) {
368
+ $(".holder_" + code).each(function () {
369
+ $(this).html(Util.pack_holder_num(item));
370
+ });
371
+ }
370
372
  }
371
373
  if (item["high"]) {
372
374
  let high_price = Util.digit_compare_trend(item["high"], item["previous_price"]);