Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-24 10:52:05 +03:00
parent a237c5c029
commit 3b666039ad

View file

@ -70,8 +70,11 @@ internal class ManageTokensUiManager(
val updatedBatch = uiBatchToUpdate.copy(
data = data.mapIndexed { index, item ->
if (item == currencyBatch.data[index]) {
return@mapIndexed uiBatchToUpdate.data[index]
val uiBatch = uiBatchToUpdate.data.getOrNull(index)
if (item == currencyBatch.data.getOrNull(index) &&
uiBatch != null
) {
return@mapIndexed uiBatch
}
val previousUiItem = uiBatchToUpdate.data.getOrNull(index)