From 66d91dfd61176a157bdaad8c419affc03bb3ea72 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Mon, 17 Apr 2023 16:10:32 +0100 Subject: [PATCH] Merge pull request #12632 from overleaf/jdt-jpa-sso-notification-logging [web] fallback to providerName when displaying SSO-linked notification GitOrigin-RevId: 0da4a570f8a704cdbd47b5905a21273c6ab85d6d --- .../web/app/src/Features/Project/ProjectListController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/Features/Project/ProjectListController.js b/services/web/app/src/Features/Project/ProjectListController.js index 5ac76f4b88..24ed4ac0cc 100644 --- a/services/web/app/src/Features/Project/ProjectListController.js +++ b/services/web/app/src/Features/Project/ProjectListController.js @@ -216,7 +216,9 @@ async function projectListPage(req, res, next) { if (samlSession.linked) { notificationsInstitution.push({ email: samlSession.institutionEmail, - institutionName: samlSession.linked.universityName, + institutionName: + samlSession.linked.universityName || + samlSession.linked.providerName, templateKey: 'notification_institution_sso_linked', }) }