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

(cherry picked from commit 8b960ef)
  • Loading branch information
youssef-lr authored and OSBotify committed Dec 12, 2022
1 parent f5fb7b1 commit f154dc9
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 f154dc9

Please sign in to comment.