Skip to content

Commit

Permalink
Replaced hardcoded string with Localizable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kylmakalle committed Nov 3, 2019
1 parent 5fb5d41 commit fa0c536
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 @@ -428,13 +428,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 fa0c536

Please sign in to comment.