Cater for Address types in InputAddress (#7102)

This commit is contained in:
Jaco 2022-03-03 14:11:49 +01:00 committed by GitHub
parent 294d776ed9
commit 0a77e778e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,9 @@ class InputAddress extends React.PureComponent<Props, State> {
}
private hasValue (test?: Uint8Array | string | null): boolean {
return this.getFiltered().some(({ value }) => test === value);
const address = test && test.toString();
return this.getFiltered().some(({ value }) => value === address);
}
private getFiltered (): Option[] {