From 29fd10e57652df859c1772d024ef873a6eedb375 Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Tue, 21 Aug 2018 17:03:24 -0500 Subject: [PATCH] SPARK-1559 - Badges - hide orders whose DisplayStatus is set to hidden --- src/client/spark/view/Spark/Ladder/LadderVM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/view/Spark/Ladder/LadderVM.cs b/src/client/spark/view/Spark/Ladder/LadderVM.cs index c2e6151a6..15d22735b 100644 --- a/src/client/spark/view/Spark/Ladder/LadderVM.cs +++ b/src/client/spark/view/Spark/Ladder/LadderVM.cs @@ -83,7 +83,7 @@ namespace mbts.spark { // Here we manage N orders to 1 price slot in the ladder Dictionary> orders_used_in_this_update = new Dictionary>(_equality); - var ladders_orders = working.Values.Where(o => o.Def.SecurityKey == security.Id); + var ladders_orders = working.Values.Where(o => o.Def.SecurityKey == security.Id && (o.HasState && o.State.DisplayStatus == OrderState.Types.DisplayStatus.Visible)); foreach (var wo in ladders_orders) { var slot_price_target = wo.price(); var order_type = wo.order_type();