Skip to content

Commit

Permalink
Merge pull request #5 from nicegram/strings-fix
Browse files Browse the repository at this point in the history
Replaced hardcoded string with Localizable
  • Loading branch information
trmdevadmin authored Sep 6, 2021
2 parents 4ca9f33 + fa0c536 commit 5fcf56c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions submodules/WalletUI/Sources/WalletTransactionInfoScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,13 @@ private final class WalletTransactionInfoScreenNode: ViewControllerTracingNode,
var feesString: String = ""
if case let .completed(transaction) = walletTransaction {
if transaction.otherFee != 0 {
feesString.append(formatBalanceText(transaction.otherFee, decimalSeparator: presentationData.dateTimeFormat.decimalSeparator) + " transaction fee")
feesString.append(formatBalanceText(transaction.otherFee, decimalSeparator: presentationData.dateTimeFormat.decimalSeparator) + " \(presentationData.strings.Wallet_TransactionInfo_OtherFeeHeader.lowercased())")
}
if transaction.storageFee != 0 {
if !feesString.isEmpty {
feesString.append("\n")
}
feesString.append(formatBalanceText(transaction.storageFee, decimalSeparator: presentationData.dateTimeFormat.decimalSeparator) + " storage fee")
feesString.append(formatBalanceText(transaction.storageFee, decimalSeparator: presentationData.dateTimeFormat.decimalSeparator) + " \(presentationData.strings.Wallet_TransactionInfo_StorageFeeHeader.lowercased())")
}

self.feesInfoIconNode.isHidden = feesString.isEmpty
Expand Down

0 comments on commit 5fcf56c

Please sign in to comment.