Updated on 2026-08-14
This commit is contained in:
parent
2cfd260e31
commit
19bdc77d9f
4 changed files with 33 additions and 3 deletions
|
|
@ -75,9 +75,14 @@ internal class FeeSelectorLogic @AssistedInject constructor(
|
|||
}
|
||||
|
||||
private fun loadFee() {
|
||||
if (uiState.value is FeeSelectorUM.Error) {
|
||||
return
|
||||
}
|
||||
|
||||
if (uiState.value !is FeeSelectorUM.Content) {
|
||||
uiState.update(FeeSelectorLoadingTransformer)
|
||||
}
|
||||
|
||||
modelScope.launch {
|
||||
callLoadFee()
|
||||
.fold(
|
||||
|
|
|
|||
|
|
@ -61,6 +61,10 @@ internal fun FeeSelectorBlockContent(
|
|||
onReadMoreClick: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
if (state is FeeSelectorUM.Error && state.isHidden) {
|
||||
return
|
||||
}
|
||||
|
||||
Row(
|
||||
modifier = modifier
|
||||
.background(TangemTheme.colors.background.action)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue