Disable unreachable endpoints (#7768)
This commit is contained in:
parent
24e098b7ca
commit
ab9993a313
@ -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'
|
||||
|
||||
@ -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]
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user