Merge pull request #42 from cosmos/nooomski/filter-testnets

Filter out testnets
This commit is contained in:
samepant
2022-02-22 07:56:40 -07:00
committed by GitHub
+1 -1
View File
@@ -58,7 +58,7 @@ const ChainSelect = () => {
try {
const res = await axios.get(url);
const chains = res.data.filter((item) => {
return item.type == "dir" && item.name != ".github";
return item.type == "dir" && !item.name.startsWith(".") && item.name != "testnets";
});
setChainArray(chains);
const options = chains.map(({ name }, index) => {