tune transaction screen on ios

This commit is contained in:
ivan grachev 2023-11-09 19:39:44 +03:00
parent 71c602325b
commit 6e18e13ab5
2 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@ extension BigInt {
formatter.maximumSignificantDigits = 2 formatter.maximumSignificantDigits = 2
} else { } else {
formatter.minimumFractionDigits = 6 formatter.minimumFractionDigits = 6
formatter.maximumFractionDigits = 11 formatter.maximumFractionDigits = 9
formatter.minimumSignificantDigits = 1 formatter.minimumSignificantDigits = 1
formatter.maximumSignificantDigits = 11 formatter.maximumSignificantDigits = 10
} }
return formatter.string(from: ethDecimal) ?? .zero return formatter.string(from: ethDecimal) ?? .zero

View File

@ -103,7 +103,7 @@ class ApproveTransactionViewController: UIViewController {
sectionModels[0] = cellModels sectionModels[0] = cellModels
if !initially, tableView.numberOfSections > 0 { if !initially, tableView.numberOfSections > 0 {
tableView.reloadSections(IndexSet([0]), with: .none) tableView.reloadData()
} }
okButton.isEnabled = transaction.hasFee okButton.isEnabled = transaction.hasFee
} }