diff --git a/manifest.config.ts b/manifest.config.ts index caed735..7bff1be 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -2,7 +2,7 @@ import { ManifestV3Export } from '@crxjs/vite-plugin'; const manifest = { manifest_version: 3, - name: 'HSU 돋부기', + name: 'HSU 돋부기 🔎', version: '2.1.4', description: '한성대학교 LMS 강의, 과제, 퀴즈를 한 눈에!', action: {}, diff --git a/src/hooks/useCourseData.tsx b/src/hooks/useCourseData.tsx index 36fb37c..d03fef9 100644 --- a/src/hooks/useCourseData.tsx +++ b/src/hooks/useCourseData.tsx @@ -142,10 +142,5 @@ export function useCourseData(courses: any[]) { }); } }, [courses, updateData]); - - useEffect(() => { - console.log(vods); - }, [vods]); - - return { vods, assigns, quizes, isPending, remainingTime, refreshTime, updateData, setIsPending }; + return { vods, assigns, quizes, isPending, remainingTime, refreshTime, updateData, setIsPending }; } diff --git a/src/hooks/useGetCourse.ts b/src/hooks/useGetCourse.ts index af9631d..01ab541 100644 --- a/src/hooks/useGetCourse.ts +++ b/src/hooks/useGetCourse.ts @@ -14,7 +14,7 @@ export const useGetCourses = (): UseCouresResult => { const data = courseData .map((div) => { const label = div.querySelector('.label .label-course')?.textContent?.trim() || null; - if (label && label !== '커뮤니티') return null; + if (!label || label === '커뮤니티') return null; const a = div.querySelector('a'); const url = new URL((a as HTMLAnchorElement).href); const urlParams = new URLSearchParams(url.search); diff --git a/src/option/SummaryCard.tsx b/src/option/SummaryCard.tsx index 6ef4651..2162a84 100644 --- a/src/option/SummaryCard.tsx +++ b/src/option/SummaryCard.tsx @@ -33,12 +33,12 @@ export default function SummaryCard() { return ( - +

{title}

{icon}
- + {title.includes('퀴즈') ? (
{data.length > 0 ? `${total} 개` : '0 개'}
) : ( @@ -49,8 +49,8 @@ export default function SummaryCard() { ) : ( )} -

- {title.includes('퀴즈') ? '직접 확인' : percentage + '% 완료'} +

+ {title.includes('퀴즈') ? '직접 확인' : isNaN(percentage) ? 0 + '% 완료' : percentage + '% 완료'}