Skip to content

Commit cfc3b95

Browse files
committed
minor
1 parent 42de8d1 commit cfc3b95

File tree

1 file changed

+4
-3
lines changed
  • services/static-webserver/client/source/class/osparc/info

1 file changed

+4
-3
lines changed

services/static-webserver/client/source/class/osparc/info/CommentUI.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,18 @@ qx.Class.define("osparc.info.CommentUI", {
123123

124124
const commentContent = this.getChildControl("comment-content");
125125
if (this.__comment["type"] === "NOTIFICATION") {
126+
const userGroupId = parseInt(this.__comment["content"]);
126127
commentContent.setValue("🔔 " + this.tr("Notified") + ": ");
127-
osparc.store.Users.getInstance().getUser(parseInt(this.__comment["content"]))
128+
osparc.store.Users.getInstance().getUser(userGroupId)
128129
.then(user => {
129130
if (user) {
130131
commentContent.setValue(commentContent.getValue() + user.getLabel());
131132
} else {
132-
commentContent.setValue(commentContent.getValue() + parseInt(this.__comment["content"]));
133+
commentContent.setValue(commentContent.getValue() + userGroupId);
133134
}
134135
})
135136
.catch(() => {
136-
commentContent.setValue(commentContent.getValue() + parseInt(this.__comment["content"]));
137+
commentContent.setValue(commentContent.getValue() + userGroupId);
137138
});
138139
} else if (this.__comment["type"] === "MESSAGE") {
139140
commentContent.setValue(this.__comment["content"]);

0 commit comments

Comments
 (0)