Knowledge Question Setup
This commit is contained in:
parent
1e8516e254
commit
861a3bad6a
4 changed files with 21 additions and 7 deletions
|
|
@ -54,7 +54,7 @@ export class Logger {
|
|||
if (uid) {
|
||||
const logEvKey = this.database.ref(uid).child('logs').push().key;
|
||||
|
||||
// this.database.ref(uid).update({ [`logs/${logEvKey}`]: ev });
|
||||
this.database.ref(uid).update({ [`logs/${logEvKey}`]: ev });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const store = create<State>(
|
|||
devtools((set) => ({
|
||||
uid: null,
|
||||
showScore: false,
|
||||
currentIntroStep: 0,
|
||||
currentIntroStep: 1,
|
||||
revealablesFinished: 0,
|
||||
currentScene: Scenes.OVERVIEW,
|
||||
currentSubproject: null,
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ export class Intro {
|
|||
fb9: HTMLTextAreaElement;
|
||||
fb10: HTMLTextAreaElement;
|
||||
|
||||
k1: HTMLTextAreaElement;
|
||||
|
||||
errorRef: HTMLElement;
|
||||
|
||||
constructor() {
|
||||
|
|
@ -65,6 +67,8 @@ export class Intro {
|
|||
this.fb9 = document.querySelector('#fb-9');
|
||||
this.fb10 = document.querySelector('#fb-10');
|
||||
|
||||
this.k1 = document.querySelector('#k-1');
|
||||
|
||||
this.errorRef = document.querySelector('#intro-error');
|
||||
|
||||
this.nextButton.addEventListener('click', () => this.onNextClick());
|
||||
|
|
@ -192,7 +196,7 @@ export class Intro {
|
|||
}
|
||||
|
||||
private sendKnowledgeQuestionAnswers() {
|
||||
const answers = [];
|
||||
const answers = [this.k1.value];
|
||||
|
||||
logger.logQuestions(answers, true);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue