Update API

This commit is contained in:
Ali
2021-04-02 13:16:10 +04:00
parent e424301587
commit 7c718549f4
9 changed files with 105 additions and 46 deletions

View File

@@ -302,11 +302,7 @@ private func botCheckoutControllerEntries(presentationData: PresentationData, st
if let tip = paymentForm.invoice.tip {
let tipTitle: String
//TODO:localize
if tip.min == 0 {
tipTitle = "Tip (Optional)"
} else {
tipTitle = "Tip"
}
tipTitle = "Tip"
entries.append(.tip(presentationData.theme, tipTitle, "\(formatCurrencyAmount(currentTip ?? 0, currency: paymentForm.invoice.currency))"))
}