From be790200848704c6a4a2da52eaa2a9800d8d9ab1 Mon Sep 17 00:00:00 2001 From: Habiba Zaman <> Date: Mon, 6 May 2024 13:07:08 -0230 Subject: [PATCH] updated user role to match with frontend --- src/helpers/GCNotifyCalls.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/helpers/GCNotifyCalls.ts b/src/helpers/GCNotifyCalls.ts index 21189cd..4051aef 100644 --- a/src/helpers/GCNotifyCalls.ts +++ b/src/helpers/GCNotifyCalls.ts @@ -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;