Updated on 2026-08-14

This commit is contained in:
Tangem 2024-04-01 17:49:57 +05:00
parent aa3ce9484b
commit fcfbcf283f

View file

@ -163,11 +163,11 @@ private fun FeeSelectorState.Content.getAmount(feeType: FeeType): Amount? {
private fun FeeSelectorState.Content?.getDividerAndVisibility(feeType: FeeType): Pair<Boolean, Boolean> {
val hasCustomValues = !this?.customValues.isNullOrEmpty()
val isNotSingle = this?.fees !is TransactionFee.Single
val isSingle = this?.fees is TransactionFee.Single
val isLoaded = this?.fees != null
return when (feeType) {
FeeType.Slow -> true to isNotSingle
FeeType.Market -> isNotSingle to isSingle
FeeType.Market -> isNotSingle to isLoaded
FeeType.Fast -> hasCustomValues to isNotSingle
FeeType.Custom -> false to isNotSingle
FeeType.Custom -> false to hasCustomValues
}
}