From 8594d412ac75da62f34fb013d04b5d4900a9eaf7 Mon Sep 17 00:00:00 2001 From: yevhen1sec Date: Tue, 7 Jan 2025 22:06:24 +0100 Subject: [PATCH] Fix crash on functions screen --- .../vultisig/wallet/ui/models/deposit/DepositFormViewModel.kt | 3 +++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/app/src/main/java/com/vultisig/wallet/ui/models/deposit/DepositFormViewModel.kt b/app/src/main/java/com/vultisig/wallet/ui/models/deposit/DepositFormViewModel.kt index b2be72387..90b82e708 100644 --- a/app/src/main/java/com/vultisig/wallet/ui/models/deposit/DepositFormViewModel.kt +++ b/app/src/main/java/com/vultisig/wallet/ui/models/deposit/DepositFormViewModel.kt @@ -244,6 +244,9 @@ internal class DepositFormViewModel @Inject constructor( ) } catch (e: InvalidTransactionDataException) { showError(e.text) + } catch (e: Exception) { + showError(UiText.StringResource(R.string.dialog_default_error_body)) + Timber.e(e) } finally { isLoading = false diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index bf2460c3a..5952d133a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -504,4 +504,5 @@ Specific calculation failed Signature Enable DKLS + Something went wrong \ No newline at end of file