Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AntBush committed May 23, 2024
1 parent 059023a commit c65706d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/Analyst/CBC/AssignField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down
2 changes: 0 additions & 2 deletions app/utils/getAuthRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c65706d

Please sign in to comment.