From 7f4594ad53f7450d1f92974acde10996d1b5fc8a Mon Sep 17 00:00:00 2001 From: Maximilian Harz Date: Fri, 31 Jan 2025 23:45:40 +0100 Subject: [PATCH] Fix functionality of ProfileTextView --- src/Components/Profile/Subcomponents/ProfileTextView.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */} +
)