Skip to content

Commit

Permalink
Merge pull request Expensify#28314 from aimane-chnaif/fix-console-err…
Browse files Browse the repository at this point in the history
…or-menuitem

fix console error on MenuItem
  • Loading branch information
cristipaval authored Sep 27, 2023
2 parents 13b2291 + e8f255e commit e74b4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const MenuItem = React.forwardRef((props, ref) => {
{props.description}
</Text>
)}
{props.error && (
{Boolean(props.error) && (
<View style={[styles.mt1]}>
<Text style={[styles.textLabelError]}>{props.error}</Text>
</View>
Expand Down

0 comments on commit e74b4d2

Please sign in to comment.