Skip to content

Commit

Permalink
Merge pull request #197 from bcgov/GC-Notify-User-Role-update
Browse files Browse the repository at this point in the history
updated user role to match with frontend
  • Loading branch information
habibaz authored May 6, 2024
2 parents bcdc3f1 + be79020 commit 9463e8e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/helpers/GCNotifyCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ const gCNotifyCaller = new GCNotifyCaller();
export function standardizeRole(role: string) {
let formattedRole: string = '';

if (role === 'Admin') {
formattedRole = 'Administrator';
} else if (role === 'SuperAdmin') {
if (role.toLowerCase() === 'Admin'.toLowerCase()) {
formattedRole = 'Supervisor';
} else if (role.toLowerCase() === 'SuperAdmin'.toLowerCase()) {
formattedRole = 'System administrator';
} else if (role === 'Standard') {
formattedRole = 'Client support';
} else if (role.toLowerCase() === 'Standard'.toLowerCase()) {
formattedRole = 'Customer support agent';
}

return formattedRole;
Expand Down

0 comments on commit 9463e8e

Please sign in to comment.