Skip to content

Commit 8013a18

Browse files
authored
PWA-3538::nvalid auth middleware clearTimeout implementation (#4550)
1 parent 985af02 commit 8013a18

File tree

1 file changed

+2
-2
lines changed
  • packages/peregrine/lib/store/middleware

1 file changed

+2
-2
lines changed

packages/peregrine/lib/store/middleware/auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ const scheduleSignOut = store => next => action => {
6464
intervals.set(parsedValue, intervalId);
6565
}
6666
} else if (isSigningOut(action.type)) {
67-
for (const timeoutId of timeouts) {
67+
for (const [, timeoutId] of timeouts) {
6868
clearTimeout(timeoutId);
6969
}
7070

71-
for (const intervalId of intervals) {
71+
for (const [, intervalId] of intervals) {
7272
clearInterval(intervalId);
7373
}
7474

0 commit comments

Comments
 (0)