-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 [Frontend] Fix: pass welcome credits to backend #7950
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
This PR addresses a bug where the frontend was not passing the welcome credits in USD to the backend by ensuring that the proper numeric value (via getValue()) is used.
- In osparc/po/UsersPending.js, a local constant extraCreditsInUsd is introduced to capture and pass the credit value if greater than zero.
- In osparc/po/Invitations.js, the condition now correctly retrieves the numeric value with getValue() before checking and passing it in the payload.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/po/UsersPending.js | Reads credit value into a constant and adds it to the invitation payload if greater than zero. |
| services/static-webserver/client/source/class/osparc/po/Invitations.js | Corrects the conditional check by reading the numeric value from the credit field before passing it to the backend. |
|
@mergify queue |
🛑 The pull request has been merged manuallyThe pull request has been merged manually at 4bf443b |
|



What do these changes do?
The frontend was not passing the

extraCreditsInUsdto the backend in the payload. Here the fix.Related issue/s
How to test
Dev-ops