From 852af9e7edb11df2f5815d15e14a10f7d8d365f2 Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 25 May 2026 04:03:41 -0700 Subject: [PATCH] Updated on 2026-08-14 --- .../features/tangempay/model/TangemPayChangePinModel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayChangePinModel.kt b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayChangePinModel.kt index b1d77aa35f..4194b5f69d 100644 --- a/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayChangePinModel.kt +++ b/features/tangempay/details/impl/src/main/kotlin/com/tangem/features/tangempay/model/TangemPayChangePinModel.kt @@ -61,6 +61,8 @@ internal class TangemPayChangePinModel @Inject constructor( ).getOrNull() } catch (e: Exception) { TangemLogger.e("Error", e) + uiState.update { it.copy(submitButtonLoading = false) } + uiMessageSender.send(message = ToastMessage(resourceReference(R.string.common_unknown_error))) return@launch } uiState.update { it.copy(submitButtonLoading = false) } @@ -77,7 +79,7 @@ internal class TangemPayChangePinModel @Inject constructor( SetPinResult.DECRYPTION_ERROR, SetPinResult.UNKNOWN_ERROR, null, - -> Unit // TODO: [REDACTED_TASK_KEY] - add error handling once the requirements arrive + -> uiMessageSender.send(message = ToastMessage(resourceReference(R.string.common_unknown_error))) } } }