mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
console output
This commit is contained in:
parent
cf8a1e049c
commit
f994520f9e
1 changed files with 6 additions and 2 deletions
|
@ -64,7 +64,8 @@ class LoginComplete extends React.Component {
|
|||
}
|
||||
|
||||
componentDidUnmount() {
|
||||
clearInterval(this.timer);
|
||||
console.log("component unmounting");
|
||||
//clearInterval(this.timer);
|
||||
}
|
||||
|
||||
startTimer() {
|
||||
|
@ -75,8 +76,9 @@ class LoginComplete extends React.Component {
|
|||
}
|
||||
|
||||
countDown() {
|
||||
console.log("count down");
|
||||
console.log("count down, seconds:");
|
||||
let seconds = this.state.secondsToWait - 1;
|
||||
console.log(seconds);
|
||||
this.setState({secondsToWait: seconds});
|
||||
|
||||
// waiting time over, stop counting down
|
||||
|
@ -86,6 +88,8 @@ class LoginComplete extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
console.log("render, seconds to wait:");
|
||||
console.log(this.state.secondsToWait);
|
||||
if (this.state.currentUser !== null && this.state.currentUser !== "") {
|
||||
return (<Redirect to="/home" />);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue