fix: LearningLecturesPage data 단순화

This commit is contained in:
정기영 2024-07-29 15:57:45 +09:00
parent 0eff16c42d
commit b6cbd3f595

View File

@ -3,8 +3,8 @@ import { Link } from 'react-router-dom';
import { useMyLectures } from '../../hooks/api/useMyLectures';
export default function LearningLecturesPage() {
const { data: myLectures } = useMyLectures();
const onGoingClasses = myLectures?.data ?? [];
const { data } = useMyLectures();
const onGoingClasses = data?.data ?? [];
return (
<section>