Skip to content

Commit

Permalink
fix: 알람이 한번만 동작하는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JitHoon committed Sep 22, 2023
1 parent 247b4b1 commit f3af143
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3af143

Please sign in to comment.