Commit 84b3bd32 authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Code rearranging

parent 2b9fa7ca
......@@ -78,10 +78,13 @@ export class QuizRouter extends AbstractRouter {
return {
status: StatusProtocol.Success,
step: quiz ? [QuizState.Active, QuizState.Running].includes(quiz.state) ? MessageProtocol.Available : quiz.privateKey === token
? MessageProtocol.Editable
: MessageProtocol.AlreadyTaken
: MessageProtocol.Unavailable,
step: quiz ? //
[QuizState.Active, QuizState.Running].includes(quiz.state) ? //
MessageProtocol.Available : //
quiz.privateKey === token ? //
MessageProtocol.Editable : //
MessageProtocol.AlreadyTaken : //
MessageProtocol.Unavailable, //
payload,
};
}
......
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