From 8f73e8d41246d552bab0ca0a3fe2f1babde01455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Tue, 28 May 2019 13:36:15 +0200 Subject: [PATCH] Fix content 'yesno' creation --- .../content-yes-no-creator.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts b/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts index 4baebb4d7..d55fa8863 100644 --- a/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts +++ b/src/app/components/creator/content-yes-no-creator/content-yes-no-creator.component.ts @@ -79,8 +79,12 @@ export class ContentYesNoCreatorComponent implements OnInit { return; } if (this.yesno) { + this.content.options[0].points = 10; + this.content.options[1].points = -10; this.content.correctOptionIndexes = [0]; } else { + this.content.options[0].points = -10; + this.content.options[1].points = 10; this.content.correctOptionIndexes = [1]; } let contentGroup: string; -- GitLab