Ensure InputAddress doesn't return non-filtered (#4473)

This commit is contained in:
Jaco Greeff 2021-01-27 11:46:21 +01:00 committed by GitHub
parent 760cb9dbe7
commit 3eb5cd6270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,11 @@ class InputAddress extends React.PureComponent<Props, State> {
!filter && setLastValue(type, address);
onChange && onChange(transformToAccountId(address));
onChange && onChange(
this.hasValue(address)
? transformToAccountId(address)
: null
);
}
private onChangeMulti = (addresses: string[]): void => {