Skip to content

Commit 641b8e8

Browse files
committed
오류 수정
1 parent 2a783d6 commit 641b8e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/domains/recipe/components/details/RecipeComment.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ConfirmModal from '@/shared/components/modal-pop/ConfirmModal';
66
import { useRecipeComments } from '../../api/useRecipeComment';
77
import { getApi } from '@/app/api/config/appConfig';
88
import { useToast } from '@/shared/hook/useToast';
9+
import { ParamValue } from 'next/dist/server/request/params';
910

1011
interface Props {
1112
cocktailId: number;
@@ -21,7 +22,7 @@ function RecipeComment({ cocktailId }: Props) {
2122

2223
const { toastInfo } = useToast();
2324

24-
const postRecipeComment = async (cocktailId: number, content: string) => {
25+
const postRecipeComment = async (cocktailId: number | ParamValue, content: string) => {
2526
if (!user?.id) {
2627
toastInfo('로그인 후 이용 가능합니다');
2728
return;

0 commit comments

Comments
 (0)