Updated on 2026-08-14
This commit is contained in:
parent
a237c5c029
commit
3b666039ad
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue