Updated on 2026-08-14
This commit is contained in:
parent
7703832cf1
commit
088294174c
1 changed files with 3 additions and 1 deletions
|
|
@ -21,9 +21,11 @@ internal class UpdateDataStateTransformer(
|
|||
-> NFTReceiveUM.Networks.Empty
|
||||
else -> NFTReceiveUM.Networks.Content(
|
||||
availableItems = networks.availableNetworks
|
||||
.distinctBy { it.id }
|
||||
.map { it.transform(true) }
|
||||
.toPersistentList(),
|
||||
unavailableItems = networks.unavailableNetworks
|
||||
.distinctBy { it.id }
|
||||
.map { it.transform(false) }
|
||||
.toPersistentList(),
|
||||
)
|
||||
|
|
@ -33,7 +35,7 @@ internal class UpdateDataStateTransformer(
|
|||
private fun Network.transform(enabled: Boolean): NFTNetworkUM {
|
||||
val custom = derivationPath is Network.DerivationPath.Custom
|
||||
return NFTNetworkUM(
|
||||
id = rawId + derivationPath.value,
|
||||
id = id.toString(),
|
||||
chainRowUM = ChainRowUM(
|
||||
name = name,
|
||||
type = "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue