Updated on 2026-08-14

This commit is contained in:
Tangem 2023-12-12 11:56:07 +02:00
parent 38b64433c0
commit c9fee330ef
2 changed files with 7 additions and 5 deletions

View file

@ -452,8 +452,12 @@ internal class StateBuilder(
)
else -> SwapWarning.GeneralWarning(
notificationConfig = NotificationConfig(
title = resourceReference(R.string.common_error),
subtitle = if (dataError.code == DataError.UnknownError.code) {
title = if (dataError is DataError.UnknownError) {
resourceReference(R.string.common_error)
} else {
resourceReference(R.string.warning_express_refresh_required_title)
},
subtitle = if (dataError is DataError.UnknownError) {
resourceReference(R.string.swapping_generic_error)
} else {
resourceReference(R.string.generic_error_code, wrappedList(dataError.code.toString()))

View file

@ -346,9 +346,7 @@ internal class SwapViewModel @Inject constructor(
)
}
is SwapState.SwapError -> {
if (state.error is DataError.UnknownError) {
singleTaskScheduler.cancelTask()
}
singleTaskScheduler.cancelTask()
uiState = stateBuilder.createQuotesErrorState(
uiStateHolder = uiState,
swapProvider = provider,