Skip to content

Commit

Permalink
♻️Refactor - 세미나 디테일 routing 판단 pathname 로직 변경 #19
Browse files Browse the repository at this point in the history
- number로 판단 -> string 판단으로 변경
  • Loading branch information
bianbbc87 committed May 6, 2024
1 parent 6cfd5b6 commit 5a06279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/seminar/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { changePathtoNumber } from '@/hooks/seminar/changePathtoNumber';

const SeminarDetailPage = () => {
const pathname = usePathname();
let id = changePathtoNumber(pathname);
let id = changePathtoNumber(pathname || '');

let data: SeminarThumnail | undefined;

Expand Down Expand Up @@ -57,7 +57,7 @@ const SeminarDetailPage = () => {
<SeminarDetailPdf key={`${data.id}_pdf`}/>

{/* review */}
<SeminarDetailReview key={`${data.id}_review`} />
<SeminarDetailReview key={`${data.id}_review`} data={data.reviews} />

</div>
<div className="h-[7.5rem]"></div>
Expand Down
File renamed without changes.

0 comments on commit 5a06279

Please sign in to comment.