Skip to content

Commit 1319a38

Browse files
committed
OM front-end
1 parent c530f93 commit 1319a38

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

services/static-webserver/client/source/class/osparc/Application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ qx.Class.define("osparc.Application", {
462462
if (osparc.auth.Data.getInstance().isGuest()) {
463463
const msg = osparc.utils.Utils.createAccountMessage();
464464
osparc.FlashMessenger.getInstance().logAs(msg, "WARNING");
465-
} else if ("expirationDate" in profile) {
465+
} else if (profile["expirationDate"]) {
466466
const now = new Date();
467467
const today = new Date(now.toISOString().slice(0, 10));
468468
const expirationDay = new Date(profile["expirationDate"]);

services/static-webserver/client/source/class/osparc/auth/Manager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,7 @@ qx.Class.define("osparc.auth.Manager", {
243243
username: profile["userName"],
244244
firstName: profile["first_name"],
245245
lastName: profile["last_name"],
246-
expirationDate: profile["expirationDate"] !== null && profile["expirationDate"] !== undefined
247-
? new Date(profile["expirationDate"])
248-
: null
246+
expirationDate: profile["expirationDate"] ? new Date(profile["expirationDate"]) : null
249247
});
250248
},
251249

services/web/server/tests/unit/with_dbs/02/test_projects_groups_handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ async def test_projects_groups_full_workflow(
5757
mock_project_uses_available_services,
5858
mock_catalog_api_get_services_for_user_in_product_2,
5959
):
60+
assert client.app
6061
# check the default project permissions
6162
url = client.app.router["list_project_groups"].url_for(
6263
project_id=f"{user_project['uuid']}"

0 commit comments

Comments
 (0)