Skip to content

Fix multi-app staking flow #268

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

Merged
merged 4 commits into from
Oct 24, 2022
Merged

Fix multi-app staking flow #268

merged 4 commits into from
Oct 24, 2022

Conversation

r-czajkowski
Copy link
Contributor

Closes: #244

This PR removes Authorize Selected Apps button if all apps have been authorized because there are no longer any more apps to select. It also fixes an issue with selected apps after authorization transaction- the authorized app was not removed from the selectedApps array so the user was able to click the Authorize Selected Apps again.

Remove `Authorize Selected Apps` button if all apps have been authorized
because htere arre no longer any more apps to select.
Remove the authorized app from selected apps state if the application
has been authorized. In the previous impl was an issue that selected
apps were still selected after authorization tx and user was able to
click the `Authorize Selected Apps` again. This commit fixes this issue.
@r-czajkowski r-czajkowski added this to the v1.3.1 milestone Oct 10, 2022
@github-actions
Copy link

Each word on the button should start with capital letters.
@github-actions
Copy link

@r-czajkowski r-czajkowski self-assigned this Oct 17, 2022
Copy link
Contributor

@michalsmiarowski michalsmiarowski left a comment

Choose a reason for hiding this comment

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

Left one small comment to look at before merge.

We should use the `selectedApps` param from a callback function of
`useState` hook to filter out the `randomBeacon` app if needed.
@github-actions
Copy link

@michalsmiarowski michalsmiarowski self-requested a review October 24, 2022 13:30
Copy link
Contributor

@michalsmiarowski michalsmiarowski left a comment

Choose a reason for hiding this comment

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

LGTM

@michalsmiarowski michalsmiarowski merged commit 85190d6 into main Oct 24, 2022
@michalsmiarowski michalsmiarowski deleted the update-auth-page branch October 24, 2022 13: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.

Remove "Authorize Selected Apps" button if all apps have been authorized
2 participants