Skip to content

Commit

Permalink
update sign in button loading status conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jan 9, 2024
1 parent 0ab7543 commit 9d693b9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/SignInButton/SignInButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ export class SignInButton extends Component {
verifyingToken: false
}

componentDidMount = () => {
const storedState = localStorage.getItem('state');

if (storedState) {
this.setState({ clicked: true })
}
}

handleSignin = () => {
//clear stale locks in localStorage
localStorage.clear();
Expand All @@ -54,7 +46,7 @@ export class SignInButton extends Component {
}

render() {
if (this.props.checkingLoginStatus || this.state.clicked) {
if (this.state.clicked) {
return (
<BusySpinner
className={classNames("mr-mx-8", {"mr-mx-20": this.props.longForm})}
Expand Down

0 comments on commit 9d693b9

Please sign in to comment.