From 83a920d6389b93d89dfd768b57c512104ecedb95 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:32:56 +0200 Subject: [PATCH] Use set testname in selector --- components/chainSelect/ChainSelect.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/components/chainSelect/ChainSelect.tsx b/components/chainSelect/ChainSelect.tsx index 0882bf1..93c9a2b 100644 --- a/components/chainSelect/ChainSelect.tsx +++ b/components/chainSelect/ChainSelect.tsx @@ -1,14 +1,13 @@ -import React, { useEffect, useState } from "react"; -import axios from "axios"; import { StargateClient } from "@cosmjs/stargate"; - +import { assert } from "@cosmjs/utils"; +import axios from "axios"; +import React, { useEffect, useState } from "react"; +import { useAppContext } from "../../context/AppContext"; import GearIcon from "../icons/Gear"; import Button from "../inputs/Button"; import Input from "../inputs/Input"; -import { useAppContext } from "../../context/AppContext"; import Select from "../inputs/Select"; import StackableContainer from "../layout/StackableContainer"; -import { assert } from "@cosmjs/utils"; import { ChainRegistryAsset } from "./chainregistry"; interface ChainOption { @@ -104,7 +103,11 @@ const ChainSelect = () => { if (index >= 0) { return options[index]; } - return { label: "unkown chain", value: -1 }; + return { + label: + registryName === process.env.NEXT_PUBLIC_REGISTRY_NAME ? registryName : "unknown chain", + value: -1, + }; }; const getChainInfo = async (chainOption: GithubChainRegistryItem) => {