Skip to content

Commit

Permalink
Make sure to use the boolean operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Sep 10, 2024
1 parent fe4d19e commit a0bfd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AmountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function AmountForm(
// eslint-disable-next-line react/jsx-props-no-spreading
{...rest}
/>
{!errorText && (
{!!errorText && (
<FormHelpMessage
style={[styles.pAbsolute, styles.b0, canUseTouchScreen ? styles.mb0 : styles.mb3, styles.ph5, styles.w100]}
isError
Expand Down

0 comments on commit a0bfd4f

Please sign in to comment.