-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversation
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.
Preview uploaded to https://preview.dashboard.test.threshold.network/update-auth-page/index.html. |
Each word on the button should start with capital letters.
Preview uploaded to https://preview.dashboard.test.threshold.network/update-auth-page/index.html. |
There was a problem hiding this 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.
Preview uploaded to https://preview.dashboard.test.threshold.network/update-auth-page/index.html. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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 theselectedApps
array so the user was able to click theAuthorize Selected Apps
again.