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: Derive referral code from node id for referral widget #2444

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

holzeis
Copy link
Contributor

@holzeis holzeis commented Apr 17, 2024

This is not ideal, but since the referral code can be derived deterministically from the node id its safe to do and will ensure that the app will not fail to start.

This fixes an issue where the referral status is not yet set because the app hasn't processed the authenticated message from the coordinator yet. (happened because the referral widget will be shown immediately on the wallet screen after init, which can lead to that race condition)

fixes #2442

This is not ideal, but since the referral code can be derived deterministically from the node id its safe to do and will ensure that the app will not fail to start.

This fixes an issue where the referral status is not yet set because the app hasn't processed the authenticated message from the coordinator yet.
@holzeis holzeis self-assigned this Apr 17, 2024
@holzeis holzeis merged commit 57e1107 into main Apr 17, 2024
23 checks passed
@holzeis holzeis deleted the fix/referral-status-not-ready-at-startup branch April 17, 2024 15:25
Copy link
Contributor

@bonomat bonomat left a comment

Choose a reason for hiding this comment

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

This works. I guess an alternative solution would have been to simply not show the dialog when the referralStatus is not yet set.

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.

App doesn't work since 2.2.0 update
2 participants