From 1dc31de31ba6ec0215241e535f01f40f5b69dca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Fri, 19 Jul 2024 13:03:21 +0200 Subject: [PATCH] test: fix tests --- src/lib/useVisitorData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/useVisitorData.ts b/src/lib/useVisitorData.ts index f37b550..519dddb 100644 --- a/src/lib/useVisitorData.ts +++ b/src/lib/useVisitorData.ts @@ -34,13 +34,13 @@ export function useVisitorData( const getData: UseGetVisitorDataResult['getData'] = async (getDataOptions) => { loadingValue.set(true) - const options: UseVisitorDataOptions = { + const { ignoreCache, ...options }: UseVisitorDataOptions = { ...(topLevelOptions ?? {}), ...(getDataOptions ?? {}), } try { - const result = await context.getVisitorData(options, options.ignoreCache) + const result = await context.getVisitorData(options, ignoreCache) dataValue.set(result) errorValue.set(undefined)