diff --git a/secant/Features/WalletEventsFlow/Views/TransactionDetailView.swift b/secant/Features/WalletEventsFlow/Views/TransactionDetailView.swift index 64d389f..965ac07 100644 --- a/secant/Features/WalletEventsFlow/Views/TransactionDetailView.swift +++ b/secant/Features/WalletEventsFlow/Views/TransactionDetailView.swift @@ -41,8 +41,12 @@ struct TransactionDetailView: View { case .failed: Text(L10n.Transaction.youDidNotSent(transaction.zecAmount.decimalString(), TargetConstants.tokenName)) .padding() + address(mark: .inactive, viewStore: viewStore) memo(transaction, viewStore, mark: .highlight) + + Text(L10n.TransactionDetail.error(transaction.errorMessage ?? L10n.General.unknown)) + .padding() } } diff --git a/secant/Resources/Generated/L10n.swift b/secant/Resources/Generated/L10n.swift index 01f53da..b7e7f7d 100644 --- a/secant/Resources/Generated/L10n.swift +++ b/secant/Resources/Generated/L10n.swift @@ -586,6 +586,10 @@ internal enum L10n { } } internal enum TransactionDetail { + /// Error: %@ + internal static func error(_ p1: Any) -> String { + return L10n.tr("Localizable", "transactionDetail.error", String(describing: p1), fallback: "Error: %@") + } /// Transaction detail internal static let title = L10n.tr("Localizable", "transactionDetail.title", fallback: "Transaction detail") } diff --git a/secant/Resources/Localizable.strings b/secant/Resources/Localizable.strings index 7a5768a..ed8b8ba 100644 --- a/secant/Resources/Localizable.strings +++ b/secant/Resources/Localizable.strings @@ -144,6 +144,7 @@ "transaction.to" = "to"; "transaction.unconfirmed" = "unconfirmed"; "transactionDetail.title" = "Transaction detail"; +"transactionDetail.error" = "Error: %@"; // MARK: - Not Enough Free Space "nefs.message" = "Not enough space on disk to do synchronisation!";