Skip to content

Commit

Permalink
Show servicedesk validated account #587
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jan 22, 2025
1 parent 20c32b0 commit 027bf6f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion myconext-gui/src/icons/frontdesk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions myconext-gui/src/utils/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const institutionLogo = institution => {
export const institutionName = linkedAccount => {
if (linkedAccount.external) {
const translation = I18n.translations[I18n.locale];
if (translation.verify.issuers[linkedAccount.issuer.name]) {
return I18n.t(`verify.issuers.${linkedAccount.issuer.name}`);
if (linkedAccount.issuer.name && translation.verify.issuers[linkedAccount.issuer.name.toLowerCase()]) {
return I18n.t(`verify.issuers.${linkedAccount.issuer.name.toLowerCase()}`);
}
return linkedAccount.issuer.name;
}
Expand Down
6 changes: 5 additions & 1 deletion myconext-gui/src/verify/banks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import EHERKENNING from "../icons/verify/eIDAS_color.svg?raw";
import SERVICE_DESK from "../icons/frontdesk.svg?raw";
import UNKNOWN from "../icons/verify/banks/image-not-found.svg?raw";
import {isEmpty} from "../utils/utils";

Expand All @@ -10,8 +11,11 @@ export function logo(issuer) {
if (issuer.logo) {
return issuer.logo;
}
if (issuer.id === "eherkenning") {
if (issuer.id && issuer.id.toLowerCase() === "eherkenning") {
return EHERKENNING;
}
if (issuer.id && issuer.id.toLowerCase() === "servicedesk") {
return SERVICE_DESK;
}
return UNKNOWN;
}

0 comments on commit 027bf6f

Please sign in to comment.