Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Nov 12, 2024
1 parent f65f0dc commit 4fda89d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ internal class SubaccountTransactionSupervisor(

internal fun cancelTriggerOrdersWithClosedOrFlippedPositions() {
val subaccount = stateMachine.state?.subaccount(subaccountNumber) ?: return
if (stateMachine.state?.marketsSummary?.marketIds()?.isEmpty() != false) return
if (stateMachine.state?.marketsSummary?.marketIds().isNullOrEmpty()) return

val cancelableTriggerOrders = subaccount.orders?.filter { order ->
val isConditionalOrder = order.orderFlags == CONDITIONAL_ORDER_FLAGS
Expand Down

0 comments on commit 4fda89d

Please sign in to comment.