@glissandoo/lib 1.52.0 → 1.52.1
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/models/Evento/index.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export default class Evento extends EventoPromoter<EventData> {
|
|
|
72
72
|
get templateId(): string | null;
|
|
73
73
|
get repeat(): import("./types").EventRepeatType | null;
|
|
74
74
|
isPlayer: (userId: string) => boolean;
|
|
75
|
-
isPlayerActive: (userId: string) => boolean
|
|
75
|
+
isPlayerActive: (userId: string) => boolean;
|
|
76
76
|
getPlayer: (userId: string) => EventPlayerBasicData | null;
|
|
77
77
|
isPlayerConfirmed(player: EventPlayerBasicData): boolean;
|
|
78
78
|
isPlayerDeclined(player: EventPlayerBasicData): boolean;
|
package/models/Evento/index.js
CHANGED
|
@@ -19,7 +19,7 @@ class Evento extends promoter_1.default {
|
|
|
19
19
|
};
|
|
20
20
|
this.isPlayerActive = (userId) => {
|
|
21
21
|
const player = this.getPlayer(userId);
|
|
22
|
-
return player && player.selected !== false;
|
|
22
|
+
return player !== null && player.selected !== false;
|
|
23
23
|
};
|
|
24
24
|
this.getPlayer = (userId) => {
|
|
25
25
|
return userId in this.players ? this.players[userId] : null;
|