Fixed auto scroll in chips row

This commit is contained in:
Sad Ellie 2022-08-12 21:42:25 +03:00
parent 9094d9b527
commit 9120fa649d

View File

@ -126,7 +126,7 @@ private fun BasicUnitListScreen(
*/
viewModel.setSelectedChip(currentUnit.group)
viewModel.loadUnitsToShow(noBrokenCurrencies)
chipsRowLazyListState.animateScrollToItem(ALL_UNIT_GROUPS.indexOf(currentUnit.group))
chipsRowLazyListState.animateScrollToItem(uiState.shownUnitGroups.indexOf(currentUnit.group))
}
}