Commit f4be1d6f authored by Christopher Fullarton's avatar Christopher Fullarton

Fixes error when having multiple teams in the quiz and setting autoJoinToGroup to true

parent 31a54b04
Pipeline #33622 passed with stages
in 15 minutes and 8 seconds
......@@ -55,17 +55,18 @@ export enum MessageProtocol {
EndOfQuestions = 'EndOfQuestions', //
CurrentState = 'CurrentState', //
GetStartTime = 'GetStartTime', //
GetLeaderboardData = 'GetLeaderboardData', //
Reserved = 'Reserved', //
Removed = 'Removed', //
GetThemes = 'GetThemes', //
QuizAssets = 'QuizAssets', //
Render = 'Render', //
Connected = 'Connected', //
QuizNotFound = 'QuizNotFound', //
Connect = 'Connect', //
Disconnect = 'Disconnect', //
Editable = 'Editable', //
GetLeaderboardData = 'GetLeaderboardData', //
Reserved = 'Reserved', //
Removed = 'Removed', //
GetThemes = 'GetThemes', //
QuizAssets = 'QuizAssets', //
Render = 'Render', //
Connected = 'Connected', //
QuizNotFound = 'QuizNotFound', //
Connect = 'Connect', //
Disconnect = 'Disconnect', //
Editable = 'Editable', //
GetFreeMemberGroup = 'GetFreeMemberGroup', //
}
export const Message = {
......
......@@ -47,7 +47,7 @@ export class MemberGroupSelectComponent {
if (this.quizService.quiz.sessionConfig.nicks.autoJoinToGroup) {
this.quizApiService.getFreeMemberGroup().subscribe((data: IMessage) => {
if (data.status === StatusProtocol.Success && data.step === MessageProtocol.Updated) {
if (data.status === StatusProtocol.Success && data.step === MessageProtocol.GetFreeMemberGroup) {
this.addToGroup(data.payload.groupName);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment