Skip to content

Resolve "I_002_R2 Yes/No questions change answer"

So apparently this condition here was causing the problem:

if (!this.currentValue && !newValue) return undefined

  1. The currentValue is undefined, which is expected for a new question that hasn't been answered before.
  2. The newValue is false, which is the selected "No" answer.
  3. For boolean questions, false is a valid answer, but it's being treated as falsy and causing the function to return undefined, which prevents the toast from being shown.

Closes #1399 (closed)

Edited by Hanhoan Truong

Merge request reports

Loading