Commit 4186be5d authored by Christopher Fullarton's avatar Christopher Fullarton

Sets the enteredSessionName in the home component correctly if the quiz name...

Sets the enteredSessionName in the home component correctly if the quiz name could not be found locally
parent df34f2ba
Pipeline #34501 passed with stages
in 15 minutes and 45 seconds
......@@ -544,11 +544,13 @@ export class HomeComponent implements OnInit, OnDestroy {
answerList.forEach((character, index) => {
answerOptionList.push(new DefaultAnswerEntity({
answerText: (String.fromCharCode(index + 65)),
answerText: (
String.fromCharCode(index + 65)
),
isCorrect: false,
}));
});
this.enteredSessionName = questionGroup.name;
this.enteredSessionName = questionGroup ? questionGroup.name : this.enteredSessionName.trim();
const abcdQuestion: ABCDSingleChoiceQuestionEntity = new ABCDSingleChoiceQuestionEntity({
questionText: '',
timer: 60,
......
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
import { LoginMechanism } from '../app/lib/enums/enums';
import { QuizTheme } from '../app/lib/enums/QuizTheme';
import { IEnvironment } from '../app/lib/interfaces/IEnvironment';
......
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