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
parent 3bb31d4d71
commit 69fc8d7606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) => {