Skip to content

Commit

Permalink
refactor: add 60s timeout if completions enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed May 26, 2023
1 parent 8078736 commit 97c770f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/MemoriWidget/MemoriWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,10 @@ const MemoriWidget = ({
}
}

if (memori.enableCompletions) {
timeout = timeout + 60;
}

let uiTimeout = setTimeout(handleTimeout, timeout * 1000);
setUserInteractionTimeout(uiTimeout);
timeoutRef.current = uiTimeout;
Expand Down

0 comments on commit 97c770f

Please sign in to comment.