Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Removing error messaging from fee label
Browse files Browse the repository at this point in the history
  • Loading branch information
chitowncrispy committed Oct 31, 2019
1 parent a5b7658 commit 3dabcde
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Library/Generated/strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,6 @@ internal enum L10n {
internal static let sendButton = L10n.tr("Localizable", "scene.send.send_button")
/// Send amount too small
internal static let sendAmountTooSmall = L10n.tr("Localizable", "scene.send.send_amount_too_small")
/// Send amount too small for estimate
internal static let sendAmountTooSmallForEstimate = L10n.tr("Localizable", "scene.send.send_amount_too_small_for_estimate")
/// Sending...
internal static let sending = L10n.tr("Localizable", "scene.send.sending")
/// Payment Successful
Expand Down
9 changes: 2 additions & 7 deletions Library/Scenes/ModalDetail/Send/LoadingAmountView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,11 @@ final class LoadingAmountView: UIView {
} else {
amountLabel.text = "-"
}
case .error(let lndApiError):
case .error:
activityIndicator.isHidden = true
amountLabel.isHidden = false

switch lndApiError {
case .transactionDust:
amountLabel.text = L10n.Scene.Send.sendAmountTooSmallForEstimate
default:
amountLabel.text = "-"
}
amountLabel.text = "-"
}
}
}
1 change: 0 additions & 1 deletion Library/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
"scene.send.memo_headline" = "Memo:";
"scene.send.sending" = "Sending...";
"scene.send.send_amount_too_small" = "Send amount too small";
"scene.send.send_amount_too_small_for_estimate" = "Send amount too small for fee estimation";
"scene.send.lightning.title" = "Send Lightning Payment";
"scene.send.on_chain.title" = "Send On-Chain";
"scene.send.on_chain.fee" = "Fee:";
Expand Down

0 comments on commit 3dabcde

Please sign in to comment.