Skip to content

Commit

Permalink
remove ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdilouraoui committed Jan 14, 2025
1 parent 138d650 commit b43feff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/common/conditional-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b43feff

Please sign in to comment.