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

Identity Provider: provide response to aragonAPI when user cancels identity modification #686

Merged
merged 1 commit into from Apr 10, 2019

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Apr 9, 2019

Coupled with aragon/aragon.js#277, apps will now receive errors on requestAddressIdentityModification().

@sohkai sohkai requested review from bpierre and 2color April 9, 2019 18:17
this.setState({ identityIntent: null }, identityIntent.resolve)
)
.then(identityIntent.resolve)
.then(() => this.setState({ identityIntent: null }))
Copy link
Contributor Author

@sohkai sohkai Apr 9, 2019

Choose a reason for hiding this comment

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

I think it's more clear this way (it also propagates the returned metadata to requestAddressIdentityModification()), but perhaps there was a reason for doing the resolution in the setState() callback?

Copy link
Contributor

@2color 2color Apr 10, 2019

Choose a reason for hiding this comment

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

I agree. I don't believe there was a reason.

@sohkai sohkai merged commit 037a05f into master Apr 10, 2019
@sohkai sohkai deleted the identity-intent-response branch April 10, 2019 13:37
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