a little more cleanup w/ burnettk
This commit is contained in:
parent
3f0b2f9faf
commit
38341a9879
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue