-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Enh: Preferred Wallet #7978
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
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.
Pull Request Overview
Enhances the preferred wallet selection logic to handle missing or invalid preference settings by preferring a personal wallet and falling back to the first available one.
- Broaden condition to apply when any wallets exist, not just a single one
- Introduce lookup for the user’s personal wallet in the group
- Add fallback to the first wallet if no personal wallet is found
services/static-webserver/client/source/class/osparc/store/Store.js
Outdated
Show resolved
Hide resolved
pcrespov
left a comment
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.
👍
|
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 98caa3a |
|
It doesn't need to be hacky, since groups are not product-bound — that's why you can have access to multiple wallets when you're added to a second product and your user already belongs to some groups. |
|



What do these changes do?
Reported by @bisgaard-itis ft. @matusdrobuliak66
This PR fixes a
hackysituation where the wallets are created manually in the DB.If the user gets access to two wallets without having a preferred wallet, this PR improves the logic by traying to choose the personal one.
Related issue/s
How to test
Dev-ops