Fix InputAddress allPlus with 0x input (#7518)

This commit is contained in:
Jaco 2022-05-04 11:28:54 +02:00 committed by GitHub
parent e5c70e47d8
commit 5b088a8b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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