From c65706d323cd4ecdd508b17b2294f1a75e4e85cc Mon Sep 17 00:00:00 2001 From: Anthony Bushara Date: Thu, 23 May 2024 14:48:11 -0400 Subject: [PATCH] chore: cleanup --- app/components/Analyst/CBC/AssignField.tsx | 2 +- app/utils/getAuthRole.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/Analyst/CBC/AssignField.tsx b/app/components/Analyst/CBC/AssignField.tsx index b2ee2bc30..bba99c9e3 100644 --- a/app/components/Analyst/CBC/AssignField.tsx +++ b/app/components/Analyst/CBC/AssignField.tsx @@ -39,7 +39,7 @@ const AssignField = ({ fieldName, fieldOptions, fieldType, cbc }) => { const [updateField] = useUpdateCbcDataByRowIdMutation(); const [fieldValue, setFieldValue] = useState( fieldType === 'string' - ? jsonData[fieldName]?.toString() || null + ? jsonData[fieldName].toString() || null : jsonData[fieldName] || null ); diff --git a/app/utils/getAuthRole.ts b/app/utils/getAuthRole.ts index 732d40714..b96b22715 100644 --- a/app/utils/getAuthRole.ts +++ b/app/utils/getAuthRole.ts @@ -36,8 +36,6 @@ const getAuthRole = (req: Request) => { const isAnalyst = roles?.includes('analyst'); const isCbcAdmin = roles?.includes('cbc_admin'); - console.log(roles); - if (idp === 'idir') { if (isCbcAdmin) { return {