Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Refactor support network check
Sebastian Martinez committed 4 years ago
commit a46d715e084001a44ba8204c7083b55bf173cb23
parent 442515f0565a76f2a659e379edc68bc0575ed320
1 file changed +2 -2
modified src/config.ts
@@ -36,8 +36,8 @@ export class Config {
  ) {
    let cfg = (<Record<string, any>> config)[network.name];
    
-
    if(!config.hasOwnProperty(network.name.toLowerCase())) {
-
      throw `Network ${network.name} is not supported`
+
    if (!cfg) {
+
      throw `Network ${network.name} is not supported`;
    }

    this.network = network;