a little more cleanup w/ burnettk

This commit is contained in:
jasquat 2023-01-12 11:32:52 -05:00
parent 3f0b2f9faf
commit 38341a9879
1 changed files with 2 additions and 2 deletions

View File

@ -208,10 +208,10 @@ export const refreshAtInterval = (
timeout: number,
func: Function
) => {
const intervalRef = setInterval(() => func(), interval * 100000);
const intervalRef = setInterval(() => func(), interval * 1000);
const timeoutRef = setTimeout(
() => clearInterval(intervalRef),
timeout * 100000
timeout * 1000
);
return () => {
clearInterval(intervalRef);