From afc7f08c2188b00038db38c55b9f234bcc129b61 Mon Sep 17 00:00:00 2001 From: hae-on Date: Thu, 19 Oct 2023 14:34:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=BF=80=EC=A1=B0=ED=95=A9=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=ED=86=A0=EC=8A=A4=ED=8A=B8=20=EC=9C=84=EC=B9=98=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Recipe/RecipeFavorite/RecipeFavorite.tsx | 1 - .../components/Recipe/RecipeRegisterForm/RecipeRegisterForm.tsx | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Recipe/RecipeFavorite/RecipeFavorite.tsx b/frontend/src/components/Recipe/RecipeFavorite/RecipeFavorite.tsx index 8df4e9e1..703e209c 100644 --- a/frontend/src/components/Recipe/RecipeFavorite/RecipeFavorite.tsx +++ b/frontend/src/components/Recipe/RecipeFavorite/RecipeFavorite.tsx @@ -27,7 +27,6 @@ const RecipeFavorite = ({ recipeId, favorite, favoriteCount }: RecipeFavoritePro onSuccess: () => { setIsFavorite((prev) => !prev); setCurrentFavoriteCount((prev) => (isFavorite ? prev - 1 : prev + 1)); - toast.success('🍯 꿀쑰합이 등둝 λμ–΄μš”'); }, onError: () => { toast.error('κΏ€μ‘°ν•© μ’‹μ•„μš”λ₯Ό λ‹€μ‹œ μ‹œλ„ν•΄μ£Όμ„Έμš”.'); diff --git a/frontend/src/components/Recipe/RecipeRegisterForm/RecipeRegisterForm.tsx b/frontend/src/components/Recipe/RecipeRegisterForm/RecipeRegisterForm.tsx index 074d8f4f..e92d894c 100644 --- a/frontend/src/components/Recipe/RecipeRegisterForm/RecipeRegisterForm.tsx +++ b/frontend/src/components/Recipe/RecipeRegisterForm/RecipeRegisterForm.tsx @@ -49,6 +49,7 @@ const RecipeRegisterForm = ({ closeRecipeDialog }: RecipeRegisterFormProps) => { mutate(formData, { onSuccess: () => { resetAndCloseForm(); + toast.success('🍯 꿀쑰합이 등둝 λμ–΄μš”'); }, onError: (error) => { resetAndCloseForm();