Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

"successfully joined study" banner appears when the user declines to install the study extension #634

Open
jonathanmayer opened this issue Jun 1, 2021 · 1 comment

Comments

@jonathanmayer
Copy link

On the Current Studies page, if you click Join Study, click Accept & Enroll, then click Cancel on the study extension install request, the "successfully joined study" banner still appears. The issue appears to be at:

function joinStudy(studyID) { store.updateStudyEnrollment(studyID, true); notification.send({code: "SUCCESSFULLY_JOINED_STUDY"}); }

The notification should probably be triggered by completing rather than starting study extension installation:

async _handleAddonLifecycle(info, installed) {

@rhelmer
Copy link
Contributor

rhelmer commented Jun 1, 2021

Hm, I could swear we had an issue filed for this already... @hamilton do you know?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants