fix: never show 'guest' profile name

it's just a hack to tell we don't known the actual profile
This commit is contained in:
Colin Darie 2024-09-11 18:22:25 +02:00
parent d566186954
commit f6744adbde
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -5,8 +5,9 @@
- if dossier.present? && dossier&.france_connected_with_one_identity?
%span
 via FranceConnect
%span{ class: "fr-badge fr-badge--sm #{color_by_role(nav_bar_profile)}" }
= t("layouts.#{nav_bar_profile}")
- if nav_bar_profile != :guest # don't confuse user with unknown profile
%span{ class: "fr-badge fr-badge--sm #{color_by_role(nav_bar_profile)}" }
= t("layouts.#{nav_bar_profile}")
#account.fr-collapse.fr-menu
%ul.fr-menu__list.max-content
- if multiple_devise_profile_connect?