Skip to content

Commit

Permalink
Fixed handleCancelOrder conditional statement
Browse files Browse the repository at this point in the history
Fixed trigger conditional statement for cancelling order
  • Loading branch information
ImpossiblePairs authored Oct 16, 2021
1 parent 504613a commit b5f1a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/TradingView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const TVChartContainer = () => {
order as Order
)
} else if (market instanceof PerpMarket) {
if (order.perpTrigger?.clientOrderId ) {
if (order['triggerCondition']) {
txid = await mangoClient.removeAdvancedOrder(
selectedMangoGroup,
selectedMangoAccount,
Expand Down

0 comments on commit b5f1a5f

Please sign in to comment.