Skip to content

Commit

Permalink
Merge pull request #2550 from get10101/fix/race-condition-on-order-up…
Browse files Browse the repository at this point in the history
…dates

fix: Remove multiple order update to open
  • Loading branch information
holzeis authored May 16, 2024
2 parents c9d596d + 22a8557 commit 0f7ca9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mobile/native/src/trade/order/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ pub async fn submit_order_internal(
return Err(SubmitOrderError::Orderbook(err));
}

set_order_to_open_and_update_ui(order.id).map_err(SubmitOrderError::Storage)?;
update_position_after_order_submitted(&order).map_err(SubmitOrderError::Storage)?;

Ok(order.id)
Expand Down

0 comments on commit 0f7ca9e

Please sign in to comment.