From f3af143281111219a6194e1e27735619dedf4877 Mon Sep 17 00:00:00 2001 From: JitHoon Date: Fri, 22 Sep 2023 15:43:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=95=8C=EB=9E=8C=EC=9D=B4=20=ED=95=9C?= =?UTF-8?q?=EB=B2=88=EB=A7=8C=20=EB=8F=99=EC=9E=91=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d58c8bb..1113cc9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -18,11 +18,11 @@ import { } from "./utils/timerAndRanking"; function App(): JSX.Element { - useEffect(() => { - if (!sessionStorage.getItem("teamList")) { - SaveTeam().then(() => SaveContents(CATEGORIES)); - } + if (!sessionStorage.getItem("teamList")) { + SaveTeam().then(() => SaveContents(CATEGORIES)); + } + useEffect(() => { getRankingDocsToArr().then(doc => { const sortedData = sortRanking(doc); saveRankingInBrowser(sortedData);