diff --git a/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift b/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift index 0c1de183..9d72ad5c 100644 --- a/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift +++ b/Runnect-iOS/Runnect-iOS/Network/Dto/CourseDetailDto/ResponseDto/UploadedCourseDetailResponseDto.swift @@ -18,7 +18,7 @@ struct UploadedCourseDetailResponseDto: Codable { struct UploadUser: Codable { let nickname: String - let level: Int + let level: String let image: String let isNowUser: Bool? } diff --git a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift index 4e7a8026..d30d70a1 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift @@ -289,7 +289,7 @@ extension UploadedCourseInfoVC: UICollectionViewDataSource { guard collectionView.cellForItem(at: indexPath) is CourseListCVC else { return } guard let selectedCells = collectionView.indexPathsForSelectedItems else { return } guard let cell = collectionView.cellForItem(at: indexPath) as? CourseListCVC else { return } - let courseList = uploadedCourseList[indexPath.item] + let publicCourseModel = uploadedCourseList[indexPath.item] if isEditMode { self.deleteCourseButton.isEnabled = true let countSelectCells = selectedCells.count @@ -300,6 +300,7 @@ extension UploadedCourseInfoVC: UICollectionViewDataSource { self.deleteCourseButton.setTitle(title: "삭제하기") self.deleteCourseButton.setEnabled(true) let courseDetailVC = CourseDetailVC() + courseDetailVC.setCourseId(courseId: publicCourseModel.courseId, publicCourseId: publicCourseModel.id) courseDetailVC.hidesBottomBarWhenPushed = true self.navigationController?.pushViewController(courseDetailVC, animated: true) cell.selectCell(didSelect: false)