add type to ui/lobby

This commit is contained in:
Thibault Duplessis 2020-08-19 15:41:00 +02:00
parent 4de8f6d910
commit 7afc4ef663

View file

@ -184,7 +184,7 @@ export default class LobbyController {
this.socket.poolIn(this.poolMember); this.socket.poolIn(this.poolMember);
}; };
gameActivity = gameId => { gameActivity = (gameId: string) => {
if (this.data.nowPlaying.find(p => p.gameId === gameId)) if (this.data.nowPlaying.find(p => p.gameId === gameId))
xhr.nowPlaying().then(povs => { xhr.nowPlaying().then(povs => {
this.data.nowPlaying = povs; this.data.nowPlaying = povs;