Skip to content

Commit

Permalink
remove sign in button change
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jan 9, 2024
1 parent 4aab3fa commit 2188068
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/SignInButton/SignInButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ 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 @@ -46,7 +54,7 @@ export class SignInButton extends Component {
}

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

0 comments on commit 2188068

Please sign in to comment.