Fix/environement checking (#892)

* fix: chain id check logic

* ci: froce build
This commit is contained in:
Dexter Edwards 2022-07-28 12:04:53 +01:00 committed by GitHub
parent b810042318
commit aa6c7fd376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ export const getIsNodeLoading = ({
};
export const getHasInvalidChain = (env: Networks, chain = '') => {
return !(chain.split('-')[0] === env.toLowerCase() ?? false);
return !chain.split('-').includes(env.toLowerCase());
};
export const getIsInvalidUrl = (url: string) => {