Fix InputAddress allPlus with 0x input (#7518)
This commit is contained in:
parent
e5c70e47d8
commit
5b088a8b5b
@ -171,7 +171,7 @@ class InputAddress extends React.PureComponent<Props, State> {
|
||||
const { lastValue, value } = this.state;
|
||||
const lastOption = this.getLastOptionValue();
|
||||
const actualValue = transformToAddress(
|
||||
isDisabled || (defaultValue && (this.hasValue(defaultValue) || type === 'allPlus'))
|
||||
isDisabled || (defaultValue && defaultValue !== '0x' && (this.hasValue(defaultValue) || type === 'allPlus'))
|
||||
? defaultValue
|
||||
: this.hasValue(lastValue)
|
||||
? lastValue
|
||||
|
||||
Loading…
Reference in New Issue
Block a user