From 55e6a6dbf2c4bb002b548c620d42fd15721b092c Mon Sep 17 00:00:00 2001 From: iMaks99 <45900939+iMaks99@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:42:52 +0500 Subject: [PATCH] AND-9522 Fixed Onramp: Confirm country screen does not close --- .../onramp/confirmresidency/model/ConfirmResidencyModel.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/confirmresidency/model/ConfirmResidencyModel.kt b/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/confirmresidency/model/ConfirmResidencyModel.kt index ae4f2efc46..04021d82cc 100644 --- a/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/confirmresidency/model/ConfirmResidencyModel.kt +++ b/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/confirmresidency/model/ConfirmResidencyModel.kt @@ -52,8 +52,10 @@ internal class ConfirmResidencyModel @Inject constructor( ConfirmResidencyUM.ActionButtonConfig( onClick = { analyticsEventHandler.send(OnrampAnalyticsEvent.OnResidenceConfirm(country.name)) - modelScope.launch { saveDefaultCountryUseCase.invoke(country) } - params.onDismiss() + modelScope.launch { + saveDefaultCountryUseCase.invoke(country) + params.onDismiss() + } }, text = resourceReference(R.string.common_confirm), )