Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-07 15:27:56 +05:00
parent 778073915f
commit 468c632bbe
10 changed files with 53 additions and 27 deletions

View file

@ -47,7 +47,10 @@ internal class WalletLoadedTxHistoryConverter(
state.copy(
txHistoryState = when (error) {
is TxHistoryListError.DataError -> {
TxHistoryState.Error(onReloadClick = clickIntents::onReloadClick)
TxHistoryState.Error(
onReloadClick = clickIntents::onReloadClick,
onExploreClick = clickIntents::onExploreClick,
)
}
},
)

View file

@ -52,8 +52,11 @@ internal class WalletLoadingTxHistoryConverter(
return if (state is WalletSingleCurrencyState.Content) {
state.copy(
txHistoryState = when (error) {
is TxHistoryStateError.EmptyTxHistories -> Empty
is TxHistoryStateError.DataError -> Error(onReloadClick = clickIntents::onReloadClick)
is TxHistoryStateError.EmptyTxHistories -> Empty(onExploreClick = clickIntents::onExploreClick)
is TxHistoryStateError.DataError -> Error(
onReloadClick = clickIntents::onReloadClick,
onExploreClick = clickIntents::onExploreClick,
)
is TxHistoryStateError.TxHistoryNotImplemented -> {
NotSupported(
pendingTransactions = txHistoryItemConverter.convertList(pendingTransactions)