Skip to content

Commit 20e41ee

Browse files
[SDK] Fix null options handling in useFetchWithPayment hook (#8540)
1 parent f5ab57f commit 20e41ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/thirdweb/src/react/web/hooks/x402/useFetchWithPayment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export function useFetchWithPayment(
259259
// Default to webLocalStorage for permit signature caching
260260
const resolvedOptions = useMemo(
261261
() => ({
262-
...options,
262+
...(options ?? {}),
263263
storage: options?.storage ?? webLocalStorage,
264264
}),
265265
[options],

0 commit comments

Comments
 (0)