Skip to content

Commit

Permalink
fix(manager): 게시, 미게시 상태에 대한 메시지를 서버에서 받아오도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dxwwan committed Mar 8, 2024
1 parent c7cfbd1 commit dbbd4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service-manager/src/hooks/react-query/useSetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const useSettingPublishMutateBy = (eventId: string) => {
mutationKey: ['publish', eventId],
mutationFn: (publish: boolean) => putPublishBy(eventId, publish),
onSuccess: (response) => {
alert(response.publish ? '게시되었습니다.' : '비게시되었습니다.');
alert(response.message);
queryClient.invalidateQueries({ queryKey: ['couponEvents'] });
navigate('/setting');
},
Expand Down

0 comments on commit dbbd4f7

Please sign in to comment.