Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 2, 2024
1 parent c9e65dc commit 7f5bb1e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const withSettingEnabled =
forwardRef<any, P>((props, ref) => {
const res = useSettings.select(condition)
return res ?
// @ts-expect-error
createElement(IfComponent, { ...props, ref }) :
// @ts-expect-error
createElement(ElseComponent, { ...props, ref })
})

0 comments on commit 7f5bb1e

Please sign in to comment.