Skip to content

Conversation

@carlosmiei
Copy link
Collaborator

@carlosmiei carlosmiei self-assigned this Sep 6, 2025
@carlosmiei carlosmiei requested a review from Copilot September 6, 2025 17:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a potential runtime error by making the balance_callback call optional when handling WebSocket user data events. The change adds a null check before invoking the balance_callback to prevent errors when the callback is not defined.

  • Adds conditional check for balance_callback existence before invocation
  • Aligns balance_callback handling with other optional callbacks in the same function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@carlosmiei carlosmiei merged commit b0f87e1 into master Sep 6, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants