Skip to content

Commit

Permalink
added prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazalavi committed Sep 25, 2023
1 parent 6545a81 commit 63a6d3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/TextInput/BaseTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,16 @@ function BaseTextInput(props) {
See https://github.com/Expensify/App/issues/13802 */
const lineHeight = useMemo(() => {
if (Browser.isSafari() && _.isArray(props.inputStyle)) {
const lineHeightValue = _.find(props.inputStyle, (f) => f.lineHeight !== undefined)
if(lineHeightValue) {
return lineHeightValue.lineHeight
const lineHeightValue = _.find(props.inputStyle, (f) => f.lineHeight !== undefined);
if (lineHeightValue) {
return lineHeightValue.lineHeight;
}
} else if (Browser.isSafari() || Browser.isMobileChrome()) {
return height;
}
return undefined;
}, [props.inputStyle, height])
return undefined;
}, [props.inputStyle, height]);

return (
<>
<View style={styles.pointerEventsNone}>
Expand Down

0 comments on commit 63a6d3b

Please sign in to comment.