Skip to content

Commit

Permalink
fix chat timer
Browse files Browse the repository at this point in the history
  • Loading branch information
GnRlLeclerc committed May 21, 2024
1 parent 68c53c4 commit f97092b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ export class ExpChatComponent {
});

effect(() => {
// Only if we are currently working on this stage
if (this.participantService.workingOnStageName() !== this.stage.config().name) return;
this.currentRatingsIndex(); // Trigger reactivity when the currentRatingsIndex changes
this.chat?.markReadyToEndChat(false); // Reset readyToEndChat when the items to discuss change
this.timer.reset(TIMER_SECONDS); // Reset the timer
});

if (this.participantService.workingOnStageName() === this.stage.config().name) {
Expand Down

0 comments on commit f97092b

Please sign in to comment.