Skip to content

Commit

Permalink
๐Ÿž BugFix(#79): section.part ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetree7878 committed Dec 5, 2024
1 parent e95df24 commit c6075fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/learn/Learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import sectionsQuery from '@/queries/sectionsQuery';
export default function Learn() {
const { setUser } = useUserStore();

// ์ž„์‹œ ์œ ์ € ์ƒ์„ฑ
useEffect(() => {
setUser({ id: 3, nickname: 'admin', level: 1 });
}, []);
Expand All @@ -42,6 +43,7 @@ export default function Learn() {

// ์ด์ „ ๋ฒ„ํŠผ ์ˆ˜ ๋ˆ„์  ๊ณ„์‚ฐ
const previousPartsCounts = useMemo(() => {
if (!section || !section.part) return [];
const counts: number[] = [];
let sum = 0;

Expand Down

0 comments on commit c6075fd

Please sign in to comment.