steemit / condenser

The greatest application front-end to the Steem Blockchain.
https://steemit.com
505 stars 429 forks source link

Copying Steem Id to Transfer Dialog will not Enable Submit Button #2323

Open DoctorLai opened 6 years ago

DoctorLai commented 6 years ago

I often transfer funds to some other accounts, and I always found it frustrated if you copy the steem id to the 'To' field because it will not enable the submit button unless you type something in the 'Acmount' or 'Memo' fields.

How to reproduce?

Open the 'Transfer to Account' dialog via 'Steem Dollars' -> 'Transfer

image.png

Type in 1 in the 'Amount', like this:

image.png

Copy the id 'ned' to 'To' field,

image.png

The Submit button is still disabled unless you re-type 1 in the Amount.



Posted on Utopian.io - Rewarding Open Source Contributors

julienbh commented 6 years ago

components/modules/Transfer.jsx I think it would be around line 157 ?

validation: values => ({
                to: !values.to
                    ? tt('g.required')  <=====
                    : validate_account_name(values.to, values.memo),