From 5b088a8b5b56ce102707d57527f2467120d37f34 Mon Sep 17 00:00:00 2001 From: Jaco Date: Wed, 4 May 2022 11:28:54 +0200 Subject: [PATCH] Fix InputAddress allPlus with 0x input (#7518) --- packages/react-components/src/InputAddress/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/src/InputAddress/index.tsx b/packages/react-components/src/InputAddress/index.tsx index 1874c3e40a..932531c458 100644 --- a/packages/react-components/src/InputAddress/index.tsx +++ b/packages/react-components/src/InputAddress/index.tsx @@ -171,7 +171,7 @@ class InputAddress extends React.PureComponent { 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