@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.
@@ -2827,6 +2827,9 @@ var HockeyStatistic = /** @class */ (function (_super) {
2827
2827
  });
2828
2828
  Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
2829
2829
  get: function () {
2830
+ if (!this.gameTime) {
2831
+ return '00:00';
2832
+ }
2830
2833
  var minutes = Math.floor(this.gameTime / 60);
2831
2834
  var seconds = Math.floor(this.gameTime - minutes * 60);
2832
2835
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
@@ -3326,6 +3329,9 @@ var FootballStatistic = /** @class */ (function (_super) {
3326
3329
  }
3327
3330
  Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
3328
3331
  get: function () {
3332
+ if (!this.gameTime) {
3333
+ return '00:00';
3334
+ }
3329
3335
  var minutes = Math.floor(this.gameTime / 60);
3330
3336
  var seconds = Math.floor(this.gameTime - minutes * 60);
3331
3337
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;