diff --git a/src/layouts/ProfileMenu.vue b/src/layouts/ProfileMenu.vue index cb595caa..a5addb3a 100644 --- a/src/layouts/ProfileMenu.vue +++ b/src/layouts/ProfileMenu.vue @@ -146,7 +146,12 @@ onMounted(async () => { role !== 'uma_authorization', ) .map((role) => - role.replace(/_/g, ' ').replace(/^./, (match) => match.toUpperCase()), + role + .replace(/_/g, ' ') + .toLowerCase() + .split(' ') + .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) + .join(' '), ); } });