Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix no se muestran los expects #1553

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Fix no se muestran los expects #1553

merged 1 commit into from
Mar 18, 2024

Conversation

dlopezalvas
Copy link
Contributor

@dlopezalvas dlopezalvas commented Mar 15, 2024

No se estaban mostrando las expects en el modo "off" del experimento, porque esto:

shouldShowCongratulationsModal(challenge) {
return this.challengeExpectations.doesNotHaveExpectations(challenge) || this.isNotAffected()
},

El modal se muestra en el caso de que sea notAffected, y el chequeo de que fuera not affected estaba sin considerar el 'off':

isNotAffected() {
return !(this.isTreatmentGroup() || this.isControlGroup())
},

@dlopezalvas dlopezalvas requested a review from a team as a code owner March 15, 2024 19:17
@dlopezalvas dlopezalvas requested a review from asanzo March 15, 2024 19:17
return this.experimentGroup() === "off"
return this.experimentGroup() === this.possibleGroups[3]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De paso cambié acá para tener el string en un solo lado

Copy link
Contributor

@danielferro69 danielferro69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@dlopezalvas dlopezalvas merged commit 1742f37 into develop Mar 18, 2024
4 checks passed
@dlopezalvas dlopezalvas deleted the showing-expects branch March 18, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants