Skip to content

Commit

Permalink
Align click handler names
Browse files Browse the repository at this point in the history
  • Loading branch information
candy02058912 committed Dec 7, 2024
1 parent 6145d70 commit c1637f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/me/account-close/closed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ function AccountSettingsClosedComponent( { isUserAccountClosed } ) {
}
}, [ storedToken, urlToken ] );

const onClick = () => {
const onCancelClick = () => {
window.location.href = '/';
};

const onClickRestore = () => {
const onRestoreClick = () => {
dispatch( restoreAccount( restoreToken ) );
};

Expand Down Expand Up @@ -77,14 +77,14 @@ function AccountSettingsClosedComponent( { isUserAccountClosed } ) {
}
/>
<div className="account-deleted__buttons">
<Button variant="secondary" onClick={ onClick }>
<Button variant="secondary" onClick={ onCancelClick }>
{ translate( 'Return to WordPress.com' ) }
</Button>
{ config.isEnabled( 'me/account-restore' ) && (
<Button
variant="link"
className="account-deleted__button-link"
onClick={ onClickRestore }
onClick={ onRestoreClick }
isBusy={ isRestoring }
>
{ translate( 'I made a mistake! Restore my account' ) }
Expand Down

0 comments on commit c1637f4

Please sign in to comment.