Optionl proxy module (#2960)

This commit is contained in:
Jaco Greeff 2020-06-16 07:08:53 +02:00 committed by GitHub
parent 7ad3937410
commit b759c80f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ export default function useProxies (address?: string | null): State {
useEffect((): void => {
setState(EMPTY_STATE);
address &&
address && api.query.proxy &&
api.query.proxy
.proxies(address)
.then(([_proxies]): void => {