Disable unreachable endpoints (#7768)

This commit is contained in:
Jaco 2022-06-20 19:11:03 +02:00 committed by GitHub
parent 24e098b7ca
commit ab9993a313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -249,6 +249,7 @@ export const testChains: EndpointOption[] = [
},
{
info: 'jupiter',
isDisabled: true, // https://github.com/polkadot-js/apps/issues/7765
text: 'Jupiter',
providers: {
Patract: 'wss://ws.jupiter-poa.patract.cn'

View File

@ -52,11 +52,10 @@ function combineEndpoints (endpoints: LinkOption[]): Group[] {
if (prev.networks[prev.networks.length - 1] && e.text === prev.networks[prev.networks.length - 1].name) {
prev.networks[prev.networks.length - 1].providers.push(prov);
} else {
} else if (!e.isUnreachable) {
prev.networks.push({
icon: e.info,
isChild: e.isChild,
isUnreachable: e.isUnreachable,
name: e.text as string,
providers: [prov]
});