From 5edd7d54672c2149b238b372f8a067968fbeea03 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 27 Feb 2020 14:07:05 -0600 Subject: [PATCH] OrderBookRowVM only resets prospective_qty when the real qty changes --- .../Modules/Trading/OrderBook/OrderBookRowVM.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs index 8644745b1..cbe8fc7c4 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs @@ -269,13 +269,14 @@ namespace mbts.spark { if ((Columns.OrderType & dirty) != 0) RaisePropertyChanged(nameof(order_type), nameof(order_metadata)); // quantity - if ((Columns.Size & dirty) != 0) + if ((Columns.Size & dirty) != 0) { RaisePropertyChanged(nameof(quantity), nameof(is_qty_dirty)); - // we need to update the prospective_quantity here b/c an update could have come in while the row was in edit mode - // via the Mini OB update column mechanism (vs the EditableQty column) - // prospecive price does not need to be updated in the same manner b/c if the price is changed, the whole - // row will no longer match the filter - prospective_quantity = quantity; + // we need to update the prospective_quantity here b/c an update could have come in while the row was in edit mode + // via the Mini OB update column mechanism (vs the EditableQty column) + // prospecive price does not need to be updated in the same manner b/c if the price is changed, the whole + // row will no longer match the filter + prospective_quantity = quantity; + } // price if ((Columns.Price & dirty) != 0) { RaisePropertyChanged(nameof(price));