diff --git a/src/Components/Profile/Subcomponents/ProfileTextView.tsx b/src/Components/Profile/Subcomponents/ProfileTextView.tsx index b93f835d..a9604a69 100644 --- a/src/Components/Profile/Subcomponents/ProfileTextView.tsx +++ b/src/Components/Profile/Subcomponents/ProfileTextView.tsx @@ -15,11 +15,13 @@ export const ProfileTextView = ({ }) => { return (
- {!(item.data === '' && hideWhenEmpty) && ( + {/* eslint-disable-next-line security/detect-object-injection */} + {!(item[dataField] === '' && hideWhenEmpty) && (

{heading}

)}
- + {/* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, security/detect-object-injection */} +
)