@mtgame/core 0.0.59 → 0.0.60

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.
@@ -3040,6 +3040,9 @@
3040
3040
  });
3041
3041
  Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
3042
3042
  get: function () {
3043
+ if (!this.gameTime) {
3044
+ return '00:00';
3045
+ }
3043
3046
  var minutes = Math.floor(this.gameTime / 60);
3044
3047
  var seconds = Math.floor(this.gameTime - minutes * 60);
3045
3048
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
@@ -3539,6 +3542,9 @@
3539
3542
  }
3540
3543
  Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
3541
3544
  get: function () {
3545
+ if (!this.gameTime) {
3546
+ return '00:00';
3547
+ }
3542
3548
  var minutes = Math.floor(this.gameTime / 60);
3543
3549
  var seconds = Math.floor(this.gameTime - minutes * 60);
3544
3550
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;