Skip to content

Commit

Permalink
Merge pull request #5729 from Expensify/amal-invite-lodash-fix
Browse files Browse the repository at this point in the history
Fix invite page not loading after creating new workspace
  • Loading branch information
Luke9389 authored Oct 8, 2021
2 parents a860c59 + 6fd594b commit 13ac792
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 || 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 13ac792

Please sign in to comment.