We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a52c6cf commit c5c00a5Copy full SHA for c5c00a5
1 file changed
qml/pages/wallet/Send.qml
@@ -249,9 +249,11 @@ PageStack {
249
}
250
251
validator: RegularExpressionValidator {
252
- regularExpression: /^(0|[1-9]\d*)(\.\d{0,8})?$/
+ regularExpression: root.recipient.amount.unit === BitcoinAmount.BTC
253
+ ? /^(0|[1-9]\d{0,7})(\.\d{0,8})?$/
254
+ : /^(0|[1-9]\d{0,15})$/
255
- maximumLength: 17
256
+ maximumLength: root.recipient.amount.unit === BitcoinAmount.BTC ? 17 : 16
257
258
Item {
259
width: unitLabel.width + flipIcon.width
0 commit comments