Skip to content

Commit

Permalink
Fix crashes when adding some custom tokens (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminsato authored Oct 8, 2024
1 parent 4360352 commit fb57156
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,12 @@ internal class TokenPriceRepositoryImpl @Inject constructor(
contractAddress,
currency
)
priceAndContract?.let {
if (!priceAndContract.isNullOrEmpty()) {
savePrices(
mapOf(contractAddress to it),
mapOf(contractAddress to priceAndContract),
currency
)
val price = it.values.first()
return price
return priceAndContract.values.first()
}
return BigDecimal.ZERO
}
Expand Down

0 comments on commit fb57156

Please sign in to comment.