Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-20 15:29:45 +05:00
parent 40ab999383
commit cf9e84b748
2 changed files with 8 additions and 2 deletions

View file

@ -1685,7 +1685,7 @@ internal class SwapModel @Inject constructor(
val isNotNullCurrency = fromSwapCurrencyStatus != null && toSwapCurrencyStatus != null
if (provider != null && swapState != null && isNotNullCurrency) {
modelScope.launch {
feeSelectorReloadTrigger.triggerLoadingState()
feeSelectorRepository.state.value = FeeSelectorUM.Loading
feeSelectorReloadTrigger.triggerUpdate()
}
analyticsEventHandler.send(SwapEvents.ProviderChosen(provider))

View file

@ -384,7 +384,13 @@ internal class SwapNotificationsFactory(
quoteModel: SwapState.QuotesLoadedState,
feeError: GetFeeError?,
) {
if (feeError == null || feeCryptoCurrencyStatus == null) return
if (
feeError == null || feeCryptoCurrencyStatus == null ||
quoteModel.permissionState !is PermissionDataState.Empty
) {
return
}
when (feeError) {
is GetFeeError.DataError -> {
val error = feeError.cause