Skip to content

Commit d29aec0

Browse files
Apply suggestion from @lukas-reining
Co-authored-by: Lukas Reining <[email protected]> Signed-off-by: Todd Baert <[email protected]>
1 parent e521624 commit d29aec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class DebounceHook<T extends FlagValue = FlagValue> implements Hook {
111111
private readonly innerHook: Hook,
112112
private readonly options: Options<T>,
113113
) {
114-
this.cacheErrors = options.cacheErrors || false;
114+
this.cacheErrors = options.cacheErrors ?? false;
115115
this.cache = new FixedSizeExpiringCache<true | CachedError>({
116116
maxItems: options.maxCacheItems,
117117
ttlMs: options.debounceTime,

0 commit comments

Comments
 (0)