Skip to content

Commit

Permalink
fix: 꿀조합 등록 토스트 위치 이동 (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
hae-on authored Oct 19, 2023
1 parent 52cf2ee commit c832bb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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('꿀조합 좋아요를 다시 시도해주세요.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const RecipeRegisterForm = ({ closeRecipeDialog }: RecipeRegisterFormProps) => {
mutate(formData, {
onSuccess: () => {
resetAndCloseForm();
toast.success('🍯 꿀조합이 등록 됐어요');
},
onError: (error) => {
resetAndCloseForm();
Expand Down

0 comments on commit c832bb4

Please sign in to comment.