Skip to content

Commit

Permalink
Merge pull request #41 from PAIR-code/leo_survey
Browse files Browse the repository at this point in the history
updating currentStage in Survey
  • Loading branch information
LeoLaugier authored Jan 18, 2024
2 parents 999f406 + 6d1f2ab commit e02723b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export class ExpSurveyComponent {
constructor(
private dataService: SavedDataService,
) {
this.dataService.data().experiment.currentStage = '4. Post-chat survey';

this.error = computed(() => {
if(!this.dataService.data().experiment.currentStage) {
return `currentStage is undefined`;
Expand All @@ -55,6 +57,7 @@ export class ExpSurveyComponent {
// Assumption: this is only ever constructed when
// `this.dataService.data().experiment.currentStage` references a
// ExpStageSimpleSurvey.

this.stageData = computed(() => {
console.log(this.error())
console.log(this.dataService.nameStageMap())
Expand All @@ -78,11 +81,6 @@ export class ExpSurveyComponent {
this.dataService.updateExpStage(curStageData); };
console.log(this.stageData());
});


// this.formatLabel.valueChanges.forEach(n => {

// });
}

updateSliderValue(updatedValue: number) {
Expand Down

0 comments on commit e02723b

Please sign in to comment.