From 9c9d6399c095f20fa886207865f5f5e64397a164 Mon Sep 17 00:00:00 2001 From: hexcow Date: Mon, 3 Mar 2025 19:26:15 +0300 Subject: [PATCH] fix: fixed strict check for paymasterUrl in useCapabilities --- playground/nextjs-app-router/lib/hooks.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/playground/nextjs-app-router/lib/hooks.ts b/playground/nextjs-app-router/lib/hooks.ts index 2fd80615ec..9abfc653f8 100644 --- a/playground/nextjs-app-router/lib/hooks.ts +++ b/playground/nextjs-app-router/lib/hooks.ts @@ -18,10 +18,8 @@ export function useCapabilities() { return enabled ? { - ...(paymasterUrl && { - paymasterService: { url: paymasterUrl }, - }), - } + ...(paymasterUrl ? { paymasterService: { url: paymasterUrl } } : {}), + } : undefined; }