Skip to content

Commit

Permalink
Merge pull request #13519 from Expensify/alberto-moreClosed
Browse files Browse the repository at this point in the history
Stop displaying Closed Account message when the user starts typing
  • Loading branch information
youssef-lr authored Dec 12, 2022
2 parents 1c60740 + 70b8a72 commit 8b960ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/signin/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ class LoginForm extends React.Component {
if (this.props.account.errors) {
Session.clearAccountMessages();
}

// Clear the "Account successfully closed" message when the user starts typing
if (this.props.closeAccount.success) {
CloseAccount.setDefaultData();
}
}

/**
Expand Down

0 comments on commit 8b960ef

Please sign in to comment.