Skip to content

Commit

Permalink
Fix up lint issues (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-futureverse authored Nov 27, 2023
1 parent cf5a120 commit efd977d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/pageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function PageLoader({ children }) {
router.events.off("routeChangeComplete", handleRouteDone);
router.events.off("routeChangeError", handleRouteDone);
};
}, []);
}, [router?.events]);

return children;
}
2 changes: 1 addition & 1 deletion components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const useSearch = () => {
if (error) {
setError(undefined);
}
}, [router?.pathname]);
}, [error]);

const getSearchURL = (search) => {
if (ethers.utils.isAddress(search)) return `/address/${search}`;
Expand Down
4 changes: 2 additions & 2 deletions pages/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export default function Tokens() {
);
}, [assets, api]);

useInterval(callback, 30000); // every 10 minutes
useInterval(callback, 30000); // every 30 seconds
useEffect(() => {
callback();
}, []);
}, [callback]);

return (
<ContainerLayout>
Expand Down

0 comments on commit efd977d

Please sign in to comment.