Skip to content
Snippets Groups Projects
Commit afcd96d8 authored by Gustavo Trott's avatar Gustavo Trott
Browse files

Avoid negative seconds in inactivity warning countdown

parent cac1758a
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,8 @@ class ActivityCheck extends Component {
const { responseDelay } = this.state;
return setInterval(() => {
if(responseDelay == 0) return;
const remainingTime = responseDelay - 1;
this.setState({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment