Skip to content

Commit d88cf36

Browse files
committed
fixup: thisarg
Signed-off-by: Todd Baert <[email protected]>
1 parent 30c7aed commit d88cf36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/hooks/debounce/src/lib/debounce-hook.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class DebounceHook<T extends FlagValue = FlagValue> implements Hook {
172172
return;
173173
} else {
174174
try {
175-
hookCallback();
175+
hookCallback.call(this.innerHook);
176176
this.cache.set(cacheKey, true);
177177
} catch (error: unknown) {
178178
if (this.cacheErrors) {
@@ -184,7 +184,7 @@ export class DebounceHook<T extends FlagValue = FlagValue> implements Hook {
184184
return;
185185
}
186186
} else {
187-
hookCallback();
187+
hookCallback.call(this.innerHook);
188188
}
189189
}
190190
}

0 commit comments

Comments
 (0)