Skip to content

Commit 5de7458

Browse files
committed
formatting
1 parent 92a3c83 commit 5de7458

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

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

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,33 +87,32 @@ qx.Class.define("osparc.po.PreRegistration", {
8787
data: JSON.parse(requestAccountData.getValue())
8888
};
8989
} catch (err) {
90-
console.error(err);
90+
console.error(err);
9191

92-
const detailErrorMsg = `Error parsing Request Form JSON. ${err}`;
93-
findingStatus.setValue(detailErrorMsg);
92+
const detailErrorMsg = `Error parsing Request Form JSON. ${err}`;
93+
findingStatus.setValue(detailErrorMsg);
9494

95-
osparc.FlashMessenger.logAs(flashErrorMsg, "ERROR");
96-
submitBtn.setFetching(false);
97-
return
95+
osparc.FlashMessenger.logAs(flashErrorMsg, "ERROR");
96+
submitBtn.setFetching(false);
97+
return
9898
}
9999

100100
osparc.data.Resources.fetch("users", "preRegister", params)
101-
.then(data => {
102-
if (data.length) {
103-
findingStatus.setValue(this.tr("Pre-Registered as:"));
104-
} else {
105-
findingStatus.setValue(this.tr("No Pre-Registered user found"));
106-
}
107-
this.__populatePreRegistrationLayout(data);
101+
.then(data => {
102+
if (data.length) {
103+
findingStatus.setValue(this.tr("Pre-Registered as:"));
104+
} else {
105+
findingStatus.setValue(this.tr("No Pre-Registered user found"));
106+
}
107+
this.__populatePreRegistrationLayout(data);
108108
})
109-
.catch(err => {
110-
const detail_msg = this.tr(`Error during Pre-Registeristration: ${err.message}`)
111-
findingStatus.setValue(detail_msg);
112-
console.error(err);
113-
osparc.FlashMessenger.logAs(flashErrorMsg, "ERROR");
109+
.catch(err => {
110+
const detailErrorMsg = this.tr(`Error during Pre-Registeristration: ${err.message}`)
111+
findingStatus.setValue(detailErrorMsg);
112+
console.error(err);
113+
osparc.FlashMessenger.logAs(flashErrorMsg, "ERROR");
114114
})
115-
.finally(() => submitBtn.setFetching(false));
116-
115+
.finally(() => submitBtn.setFetching(false));
117116
}
118117
}, this);
119118
form.addButton(submitBtn);

0 commit comments

Comments
 (0)