-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Bug: Snippet form submits without wallet connection
Description
Currently, the SnippetForm allows submission even when the user wallet is not connected.
This is problematic because snippet creation should be restricted to authenticated/connected users. Right now, there is no guard condition checking wallet connection status before allowing submission.
Current Behavior
- User can submit the snippet form.
- API request is sent successfully.
- No validation exists for wallet connection state.
Expected Behavior
-
If the user wallet is not connected, form submission should:
- Prevent the API request.
- Display a toast message (e.g., “Please connect your wallet before submitting.”).
-
If the wallet is connected, submission should proceed normally.
Proposed Temporary Solution (Mock State)
Until wallet integration is finalized, introduce a mock isConnected state
Acceptance Criteria
- Form does not submit when
isConnectedis false. - Warning message appears if wallet is not connected.
- Form submits normally when
isConnectedis true. - No API request is made when wallet is disconnected.
Additional Context
This will later be replaced with real wallet connection state (e.g., from Wagmi or wallet provider context).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program