File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,26 +111,26 @@ void SendRecipient::clear()
111
111
112
112
void SendRecipient::validateAddress ()
113
113
{
114
- setAddressError (" " );
115
-
116
114
if (!m_address.isEmpty () && !IsValidDestinationString (m_address.toStdString ())) {
117
115
setAddressError (tr (" Invalid address" ));
116
+ } else {
117
+ setAddressError (" " );
118
118
}
119
119
120
120
Q_EMIT isValidChanged ();
121
121
}
122
122
123
123
void SendRecipient::validateAmount ()
124
124
{
125
- setAmountError (" " );
126
-
127
125
if (m_amount->isSet ()) {
128
126
if (m_amount->satoshi () <= 0 ) {
129
127
setAmountError (tr (" Amount must be greater than zero" ));
130
128
} else if (m_amount->satoshi () > MAX_MONEY) {
131
129
setAmountError (tr (" Amount exceeds maximum limit of 21,000,000 BTC" ));
132
130
} else if (m_amount->satoshi () > m_wallet->balanceSatoshi ()) {
133
131
setAmountError (tr (" Amount exceeds available balance" ));
132
+ } else {
133
+ setAmountError (" " );
134
134
}
135
135
}
136
136
You can’t perform that action at this time.
0 commit comments