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()
111111
112112void SendRecipient::validateAddress ()
113113{
114- setAddressError (" " );
115-
116114 if (!m_address.isEmpty () && !IsValidDestinationString (m_address.toStdString ())) {
117115 setAddressError (tr (" Invalid address" ));
116+ } else {
117+ setAddressError (" " );
118118 }
119119
120120 Q_EMIT isValidChanged ();
121121}
122122
123123void SendRecipient::validateAmount ()
124124{
125- setAmountError (" " );
126-
127125 if (m_amount->isSet ()) {
128126 if (m_amount->satoshi () <= 0 ) {
129127 setAmountError (tr (" Amount must be greater than zero" ));
130128 } else if (m_amount->satoshi () > MAX_MONEY) {
131129 setAmountError (tr (" Amount exceeds maximum limit of 21,000,000 BTC" ));
132130 } else if (m_amount->satoshi () > m_wallet->balanceSatoshi ()) {
133131 setAmountError (tr (" Amount exceeds available balance" ));
132+ } else {
133+ setAmountError (" " );
134134 }
135135 }
136136
You can’t perform that action at this time.
0 commit comments