Skip to content

Commit bde8e2b

Browse files
committed
fix
1 parent 60489c6 commit bde8e2b

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

  • templates/next-chat-x402/src/app/_components

templates/next-chat-x402/src/app/_components/chat.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,10 @@ const ChatBotDemo = () => {
7171
const { isScrollable, scrollToBottom } = useScrollable(conversationContentRef);
7272
const { messages, sendMessage, status, error } = useChatWithPayment({
7373
walletClient: walletClient as Signer,
74-
// Only pass regenerateOptions if we have a wallet for x402 payments
75-
...(walletClient && {
76-
regenerateOptions: {
77-
body: { model },
78-
headers: { 'use-x402': 'true' },
79-
},
80-
}),
74+
regenerateOptions: {
75+
body: { model },
76+
headers: { 'use-x402': 'true' },
77+
},
8178
});
8279

8380
const ensureBaseChain = async () => {

0 commit comments

Comments
 (0)