From b43feff1ce4a5a61da3643e37413cdb60aaaa873 Mon Sep 17 00:00:00 2001 From: mehdilouraoui Date: Tue, 14 Jan 2025 13:32:04 +0100 Subject: [PATCH] remove ts-ignore --- src/components/common/conditional-renderer.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/common/conditional-renderer.tsx b/src/components/common/conditional-renderer.tsx index 18ed13ed..881f6cab 100644 --- a/src/components/common/conditional-renderer.tsx +++ b/src/components/common/conditional-renderer.tsx @@ -8,9 +8,7 @@ const Conditional = ({ children }: PropsWithChildren) => { if (!isValidElement(child)) return; if (!matchChild && child.type === Case) { - // TODO See how to fix properly this warning - // @ts-ignore - const { condition } = child.props; + const { condition } = child.props as { condition: boolean }; const conditionResult = Boolean(condition); if (conditionResult) {