Skip to content
Snippets Groups Projects
Commit 8f73e8d4 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix content 'yesno' creation

parent bc1abc2b
Branches
Tags
No related merge requests found
...@@ -79,8 +79,12 @@ export class ContentYesNoCreatorComponent implements OnInit { ...@@ -79,8 +79,12 @@ export class ContentYesNoCreatorComponent implements OnInit {
return; return;
} }
if (this.yesno) { if (this.yesno) {
this.content.options[0].points = 10;
this.content.options[1].points = -10;
this.content.correctOptionIndexes = [0]; this.content.correctOptionIndexes = [0];
} else { } else {
this.content.options[0].points = -10;
this.content.options[1].points = 10;
this.content.correctOptionIndexes = [1]; this.content.correctOptionIndexes = [1];
} }
let contentGroup: string; let contentGroup: string;
......
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