Skip to content

Commit 44f628b

Browse files
Merge branch 'master' into add-conversation-messages-ws-events
2 parents c44c9fc + 4bf443b commit 44f628b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

services/static-webserver/client/source/class/osparc/po/Invitations.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ qx.Class.define("osparc.po.Invitations", {
7878
"guest": form.getItems()["email"].getValue()
7979
}
8080
};
81-
if (form.getItems()["credits"] > 0) {
81+
const extraCreditsInUsd = form.getItems()["credits"].getValue();
82+
if (extraCreditsInUsd > 0) {
8283
params.data["extraCreditsInUsd"] = extraCreditsInUsd;
8384
}
8485
if (form.getItems()["withExpiration"].getValue()) {

services/static-webserver/client/source/class/osparc/po/UsersPending.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ qx.Class.define("osparc.po.UsersPending", {
8686
},
8787
};
8888
params.data["invitation"] = {};
89-
if (form.getItems()["credits"].getValue() > 0) {
90-
params.data["invitation"]["extraCreditsInUsd"] = form.getItems()["credits"].getValue();
89+
const extraCreditsInUsd = form.getItems()["credits"].getValue();
90+
if (extraCreditsInUsd > 0) {
91+
params.data["invitation"]["extraCreditsInUsd"] = extraCreditsInUsd;
9192
}
9293
if (form.getItems()["withExpiration"].getValue()) {
9394
params.data["invitation"]["trialAccountDays"] = form.getItems()["trialDays"].getValue();

0 commit comments

Comments
 (0)