Skip to content

Commit

Permalink
fix: fixed strict check for paymasterUrl in useCapabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
hexcow authored Mar 3, 2025
1 parent a06a459 commit 9c9d639
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions playground/nextjs-app-router/lib/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ export function useCapabilities() {

return enabled
? {
...(paymasterUrl && {
paymasterService: { url: paymasterUrl },
}),
}
...(paymasterUrl ? { paymasterService: { url: paymasterUrl } } : {}),
}
: undefined;
}

Expand Down

0 comments on commit 9c9d639

Please sign in to comment.