Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
update: popup the dialog warning at a later stage of registration
Browse files Browse the repository at this point in the history
  • Loading branch information
yaya-usman committed Apr 21, 2022
1 parent 1a2a452 commit 50f1e82
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/structures/auth/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ export default class Registration extends React.Component<IProps, IState> {

componentDidMount() {
this.replaceClient(this.props.serverConfig);
//triggers a confirmation dialog for data loss before page unloads/refreshes
// window.addEventListener("beforeunload", this.unloadCallback);
}

// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
Expand Down

0 comments on commit 50f1e82

Please sign in to comment.