@mtgame/core 0.2.37 → 0.2.38
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.
|
@@ -2661,13 +2661,14 @@
|
|
|
2661
2661
|
});
|
|
2662
2662
|
Object.defineProperty(Game.prototype, "sport", {
|
|
2663
2663
|
get: function () {
|
|
2664
|
-
|
|
2664
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2665
|
+
if ((_b = (_a = this.tournament) === null || _a === void 0 ? void 0 : _a.sport) === null || _b === void 0 ? void 0 : _b.id) {
|
|
2665
2666
|
return this.tournament.sport;
|
|
2666
2667
|
}
|
|
2667
|
-
if (this.team
|
|
2668
|
+
if ((_d = (_c = this.team) === null || _c === void 0 ? void 0 : _c.sport) === null || _d === void 0 ? void 0 : _d.id) {
|
|
2668
2669
|
return this.team.sport;
|
|
2669
2670
|
}
|
|
2670
|
-
if (this.competitorTeam
|
|
2671
|
+
if ((_f = (_e = this.competitorTeam) === null || _e === void 0 ? void 0 : _e.sport) === null || _f === void 0 ? void 0 : _f.id) {
|
|
2671
2672
|
return this.competitorTeam.sport;
|
|
2672
2673
|
}
|
|
2673
2674
|
},
|