Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Personal Bank Account Onyx keys in componentWillUnmount #15679

Merged
merged 8 commits into from
Mar 21, 2023
3 changes: 1 addition & 2 deletions src/pages/AddPersonalBankAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class AddPersonalBankAccountPage extends React.Component {
};
}

componentDidMount() {
componentWillUnmount() {
BankAccounts.clearPersonalBankAccount();
}

Expand Down Expand Up @@ -99,7 +99,6 @@ class AddPersonalBankAccountPage extends React.Component {
shouldShowButton
buttonText={this.props.translate('common.continue')}
onButtonPress={() => {
BankAccounts.clearPersonalBankAccount();
Navigation.navigate(ROUTES.SETTINGS_PAYMENTS);
}}
/>
Expand Down