Skip to content

Commit

Permalink
refactor: fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
bartjkdp committed Oct 18, 2024
1 parent b1631b5 commit 5cd83c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ const FormMessage = React.forwardRef<HTMLParagraphElement, FormMessageProps>(
const body = customError
? String(customError?.message)
: error
? String(error?.message)
: children
? String(error?.message)
: children

if (!body) {
return null
Expand Down

0 comments on commit 5cd83c2

Please sign in to comment.