Skip to content

Commit 89f0630

Browse files
authored
Merge pull request #4613 from Expensify/stites-preventUndefinedErrorInText
Check for value before checking length
2 parents daf0025 + d2cd0e2 commit 89f0630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ExpensiTextInput/BaseExpensiTextInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BaseExpensiTextInput extends Component {
1919
constructor(props) {
2020
super(props);
2121

22-
const hasValue = props.value.length > 0;
22+
const hasValue = props.value && props.value.length > 0;
2323

2424
this.state = {
2525
isFocused: false,

0 commit comments

Comments
 (0)