Allow 0x input on Bytes (#5651)
* Allow 0x input on Bytes * Unbreak non-empty inputs * Adjust to prior order
This commit is contained in:
parent
11794d7d9c
commit
aa75b6ebc0
@ -80,7 +80,7 @@ function BaseBytes ({ asHex, children, className = '', defaultValue: { value },
|
||||
isValid = isValid && validate(value) && (
|
||||
length !== -1
|
||||
? value.length === length
|
||||
: value.length !== 0
|
||||
: (value.length !== 0 || hex === '0x')
|
||||
);
|
||||
|
||||
if (withLength && isValid) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user