Description
The "Pay All" button in BatchPayModal remains clickable even when no wallet is connected. Clicking it attempts to submit a transaction and throws an unhandled error instead of showing a friendly prompt to connect a wallet first.
Acceptance Criteria
Context
- Target file:
src/components/BatchPayModal.tsx
- Hook:
src/hooks/useWallet.ts
Description
The "Pay All" button in
BatchPayModalremains clickable even when no wallet is connected. Clicking it attempts to submit a transaction and throws an unhandled error instead of showing a friendly prompt to connect a wallet first.Acceptance Criteria
useWalletreports no connected walletContext
src/components/BatchPayModal.tsxsrc/hooks/useWallet.ts