Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue where SL/TP gets canceled #456

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Fix an issue where SL/TP gets canceled #456

merged 3 commits into from
Jun 18, 2024

Conversation

ruixhuang
Copy link
Contributor

We should use "==" instead of "===" to compare strings. In Kotlin, "===" compares the object address, so it would return false if the two strings are allocated separately even though their content is the same. In general, we should always use "==" unless there is a reason not to.

Also moving the callback to the last param of the cancelOrder function, since it's generally the desired pattern.

@ruixhuang ruixhuang marked this pull request as ready for review June 18, 2024 21:27
@prashanDYDX prashanDYDX merged commit 12b2d06 into main Jun 18, 2024
4 checks passed
@prashanDYDX prashanDYDX deleted the feature/cancel branch June 18, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants