From 3c356de2f54123b242d0b3579c77ef71cf1de453 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Thu, 11 Dec 2025 23:44:40 +1300 Subject: [PATCH] [SDK] Fix null options handling in useFetchWithPayment hook --- .../thirdweb/src/react/web/hooks/x402/useFetchWithPayment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/thirdweb/src/react/web/hooks/x402/useFetchWithPayment.tsx b/packages/thirdweb/src/react/web/hooks/x402/useFetchWithPayment.tsx index 01264dd5b81..89526b02953 100644 --- a/packages/thirdweb/src/react/web/hooks/x402/useFetchWithPayment.tsx +++ b/packages/thirdweb/src/react/web/hooks/x402/useFetchWithPayment.tsx @@ -259,7 +259,7 @@ export function useFetchWithPayment( // Default to webLocalStorage for permit signature caching const resolvedOptions = useMemo( () => ({ - ...options, + ...(options ?? {}), storage: options?.storage ?? webLocalStorage, }), [options],