From c241356596855e402131be7d4135e877f4f3a527 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 19 Oct 2023 19:23:54 +0100 Subject: [PATCH] refactor: changed function declaration to a variable declaration --- .gitignore | 1 + src/components/App/SideBar/Latest/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 79b91f594..41ec55927 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ build/ .env.development.local .env.test.local .env.production.local +.env npm-debug.log* yarn-debug.log* diff --git a/src/components/App/SideBar/Latest/index.tsx b/src/components/App/SideBar/Latest/index.tsx index 53c23b33e..c900962fe 100644 --- a/src/components/App/SideBar/Latest/index.tsx +++ b/src/components/App/SideBar/Latest/index.tsx @@ -16,7 +16,7 @@ const _View = ({ isSearchResult }: Props) => { const [nodeCount, setNodeCount] = useUserStore((s) => [s.nodeCount, s.setNodeCount]) const [fetchData] = [useDataStore((s) => s.fetchData)] - async function getLatest() { + const getLatest = async () => { if (nodeCount < 1) { return }