-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add client side validation #8723
Conversation
case 'qr': | ||
|
||
if (token_name == 'BTC') { | ||
if (address.toLowerCase().startsWith('0x')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does BTC start with 0x
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is displaying the error when a BTC address starts with 0x 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth moving this error state reporting to the method we use in the style guide?
http://localhost:8000/styleguide/components
It will mean we need to write up data-patterns for each of the chains so that we can properly toggle the ::invalid state, but it would add consistency. Bounty creation currently follows this pattern if you want to have a look at how its working atm.
@gdixon done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!! LGTM! 😃
* add client side validation * address feedback * address feedback * address feedback
Description
Refers/Fixes