From d2cd0e297168d111df15b8a181d9ad827ac4729c Mon Sep 17 00:00:00 2001 From: Brandon Stites Date: Thu, 12 Aug 2021 12:06:24 -0600 Subject: [PATCH] Check for value before checkng length --- src/components/ExpensiTextInput/BaseExpensiTextInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ExpensiTextInput/BaseExpensiTextInput.js b/src/components/ExpensiTextInput/BaseExpensiTextInput.js index 7194a35fe27c..0dde92a16a96 100644 --- a/src/components/ExpensiTextInput/BaseExpensiTextInput.js +++ b/src/components/ExpensiTextInput/BaseExpensiTextInput.js @@ -19,7 +19,7 @@ class BaseExpensiTextInput extends Component { constructor(props) { super(props); - const hasValue = props.value.length > 0; + const hasValue = props.value && props.value.length > 0; this.state = { isFocused: false,