From 049e6e9508cd9891d15f286a79ed78253a67f561 Mon Sep 17 00:00:00 2001 From: Sergei Balashov Date: Mon, 4 Nov 2024 17:14:15 +0000 Subject: [PATCH] IOS-8360 some fixes --- .../OnrampPaymentMethodsViewModel.swift | 3 ++- .../OnrampProvidersCompactProviderView.swift | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tangem/Modules/Send/UI/OnrampPaymentMethods/OnrampPaymentMethodsView/OnrampPaymentMethodsViewModel.swift b/Tangem/Modules/Send/UI/OnrampPaymentMethods/OnrampPaymentMethodsView/OnrampPaymentMethodsViewModel.swift index 5dd68d8dfc..d213be8a89 100644 --- a/Tangem/Modules/Send/UI/OnrampPaymentMethods/OnrampPaymentMethodsView/OnrampPaymentMethodsViewModel.swift +++ b/Tangem/Modules/Send/UI/OnrampPaymentMethods/OnrampPaymentMethodsView/OnrampPaymentMethodsViewModel.swift @@ -65,7 +65,8 @@ private extension OnrampPaymentMethodsViewModel { iconURL: method.identity.image, isSelected: selectedPaymentMethod == method.identity.code, action: { [weak self] in - self?.selectedPaymentMethod = method.identity.code + self?.selectedPaymentMethod = method.id + self?.interactor.update(selectedPaymentMethod: method) self?.updateView(paymentMethods: methods) } ) diff --git a/Tangem/Modules/Send/UI/OnrampProviders/OnrampProvidersCompactView/OnrampProvidersCompactProviderView/OnrampProvidersCompactProviderView.swift b/Tangem/Modules/Send/UI/OnrampProviders/OnrampProvidersCompactView/OnrampProvidersCompactProviderView/OnrampProvidersCompactProviderView.swift index 6d48001ff4..de89bb640e 100644 --- a/Tangem/Modules/Send/UI/OnrampProviders/OnrampProvidersCompactView/OnrampProvidersCompactProviderView/OnrampProvidersCompactProviderView.swift +++ b/Tangem/Modules/Send/UI/OnrampProviders/OnrampProvidersCompactView/OnrampProvidersCompactProviderView/OnrampProvidersCompactProviderView.swift @@ -50,6 +50,7 @@ struct OnrampProvidersCompactProviderView: View { Text("\(Localization.onrampVia) \(data.providerName)") .style(Fonts.Regular.caption1, color: Colors.Text.tertiary) } + .lineLimit(1) } private var badgeView: some View {