diff --git a/v4/feature/receipt/src/main/java/exchange/dydx/trading/feature/receipt/components/ordercount/DydxReceiptOrderCountView.kt b/v4/feature/receipt/src/main/java/exchange/dydx/trading/feature/receipt/components/ordercount/DydxReceiptOrderCountView.kt index b1708b62..0b035707 100644 --- a/v4/feature/receipt/src/main/java/exchange/dydx/trading/feature/receipt/components/ordercount/DydxReceiptOrderCountView.kt +++ b/v4/feature/receipt/src/main/java/exchange/dydx/trading/feature/receipt/components/ordercount/DydxReceiptOrderCountView.kt @@ -75,7 +75,7 @@ object DydxReceiptOrderCountView : DydxComponent { Spacer(modifier = Modifier.weight(0.1f)) PlatformAmountChange( - before = state.before?.let { + before = state.before?.let { { Text( text = state.formatter.localFormatted(it.toDouble(), 0) ?: "", diff --git a/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideView.kt b/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideView.kt index e2af7c71..ba835ada 100644 --- a/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideView.kt +++ b/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideView.kt @@ -221,9 +221,9 @@ object DydxOrderbookSideView { } } else { item { - Spacer(modifier = Modifier.height(actualLineHeight)) + Spacer(modifier = Modifier.height(actualLineHeight).animateItemPlacement()) if (i < numLinesToDisplay - 1) { - Spacer(modifier = Modifier.height(state.displayStyle.spacing)) + Spacer(modifier = Modifier.height(state.displayStyle.spacing).animateItemPlacement()) } } } diff --git a/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideViewModel.kt b/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideViewModel.kt index 6c18e985..af9c7e69 100644 --- a/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideViewModel.kt +++ b/v4/feature/trade/src/main/java/exchange/dydx/trading/feature/trade/orderbook/components/DydxOrderbookSideViewModel.kt @@ -140,6 +140,9 @@ private fun createViewState( val items = lines.take(12) val output: MutableList = mutableListOf() items.forEach { line -> + if (output.find { it.price == line.price } != null) { + return@forEach + } val textColor: ThemeColor.SemanticColor if (colorMap.containsKey(line.price)) { val entry = colorMap[line.price]!!