Update components/chainSelect/ChainSelect.js

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
This commit is contained in:
Noam
2022-02-18 15:04:10 +00:00
committed by GitHub
co-authored by Simon Warta
parent 3bb31d4d71
commit 69fc8d7606
+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" && item.name != "testnets";
return item.type == "dir" && !item.name.startsWith(".") && item.name != "testnets";
});
setChainArray(chains);
const options = chains.map(({ name }, index) => {