Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Jul 19, 2024
1 parent c08cad4 commit 1dc31de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/useVisitorData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export function useVisitorData<TExtended extends boolean>(
const getData: UseGetVisitorDataResult<TExtended>['getData'] = async (getDataOptions) => {
loadingValue.set(true)

const options: UseVisitorDataOptions<TExtended> = {
const { ignoreCache, ...options }: UseVisitorDataOptions<TExtended> = {
...(topLevelOptions ?? {}),
...(getDataOptions ?? {}),
}

try {
const result = await context.getVisitorData(options, options.ignoreCache)
const result = await context.getVisitorData(options, ignoreCache)

dataValue.set(result)
errorValue.set(undefined)
Expand Down

0 comments on commit 1dc31de

Please sign in to comment.