Skip to content

Commit e189bae

Browse files
Fix amount field formatting
1 parent 8c3c075 commit e189bae

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Adamant/Wallets/TransferViewControllerBase.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -719,16 +719,6 @@ extension TransferViewControllerBase {
719719
row.placeholder = String.adamantLocalized.transfer.amountPlaceholder
720720
row.tag = BaseRows.amount.tag
721721
row.formatter = self?.balanceFormatter
722-
row.useFormatterDuringInput = false
723-
row.useFormatterOnDidBeginEditing = true
724-
row.displayValueFor = { value in
725-
guard let v = value else { return nil }
726-
let formatter = AdamantBalanceFormat.currencyFormatter(for: .full, currencySymbol: nil)
727-
728-
let d = Decimal(v)
729-
let s = formatter.string(from: d)
730-
return s
731-
}
732722

733723
if let amount = self?.amount {
734724
row.value = amount.doubleValue

0 commit comments

Comments
 (0)