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

(cherry picked from commit 13ac792)
  • Loading branch information
Luke9389 authored and OSBotify committed Oct 8, 2021
1 parent ed7bfe2 commit da37321
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 da37321

Please sign in to comment.