Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit d4b3bb3

Browse files
committed
Fixed Assets disappearing even if they are pinned
1 parent 706b232 commit d4b3bb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • data/repositories/src/main/kotlin/com/gemwallet/android/data/repositoreis/assets

data/repositories/src/main/kotlin/com/gemwallet/android/data/repositoreis/assets/AssetsRepository.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ class AssetsRepository @Inject constructor(
112112

113113
suspend fun syncAssetInfo(assetId: AssetId, wallet: Wallet) = withContext(Dispatchers.IO) {
114114
val account = wallet.getAccount(assetId) ?: return@withContext
115-
val asset = getTokenInfo(assetId).firstOrNull()?.asset ?: return@withContext
116-
add(walletId = wallet.id, accountAddress = account.address, asset = asset, false)
115+
val asset = getTokenInfo(assetId).firstOrNull() ?: return@withContext
116+
add(walletId = wallet.id, accountAddress = account.address, asset = asset.asset, asset.metadata?.isEnabled ?: true)
117117
val updateBalancesJob = async { updateBalances(assetId) }
118118
val getAssetFull = async { syncMarketInfo(assetId, account) }
119119
priceClient.addAssetId(assetId)

0 commit comments

Comments
 (0)