Skip to content

Commit

Permalink
fix(explorer): adding a network fix (#2513)
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Sep 10, 2024
1 parent 9d2227e commit 2d6573b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-emus-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kadena/explorer': patch
---

a fix for adding a network
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,9 @@ export const ConfigNetwork: FC<IProps> = ({ handleOpen }) => {
};

useEffect(() => {
if (!network.slug) {
setGraphUrl('');
return;
}
setGraphUrl(network.graphUrl);
setGraphUrl(network?.graphUrl);
// eslint-disable-next-line @typescript-eslint/no-floating-promises
validateNetwork(network.graphUrl);
validateNetwork(network?.graphUrl);
}, [network?.slug]);

return (
Expand Down

0 comments on commit 2d6573b

Please sign in to comment.