Skip to content

Commit

Permalink
Merge pull request #5738 from Expensify/luke-quick-fix-alert-prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoToaster authored Oct 11, 2021
2 parents 91964fd + 8489edf commit 93a8b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class WorkspaceInvitePage extends React.Component {
* @returns {Boolean}
*/
getShouldShowAlertPrompt() {
return _.size(lodashGet(this.props.policy, 'errors', {})) > 0 || lodashGet(this.props.policy, 'alertMessage.length') > 0;
return _.size(lodashGet(this.props.policy, 'errors', {})) > 0 || lodashGet(this.props.policy, 'alertMessage', '').length > 0;
}

clearErrors() {
Expand Down

0 comments on commit 93a8b25

Please sign in to comment.