Skip to content

Commit

Permalink
[Fix] 누락된 조건문 추가 #1126 (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearsu authored Jan 4, 2024
1 parent 7cf9197 commit d7f8072
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions components/modal/admin/AdminFeedbackCheckModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,21 @@ export default function AdminFeedbackCheck({
await instanceInManage.patch(`/feedback/${id}`, {
isSolved: isSolved,
});
await instanceInManage.post(`/notifications`, {
intraId,
message: isSolved
? '피드백을 검토중입니다.'
: '피드백이 반영되었습니다.',
// sendMail: isSend, todo: 슬랙으로 보내는 것으로 변경
});
setSnackBar({
toastName: 'noti user',
severity: 'success',
message: `알림이 성공적으로 전송되었습니다!`,
clicked: true,
});
if (isSend) {
await instanceInManage.post(`/notifications`, {
intraId,
message: isSolved
? '피드백을 검토중입니다.'
: '피드백이 반영되었습니다.',
// sendMail: isSend, todo: 슬랙으로 보내는 것으로 변경
});
setSnackBar({
toastName: 'noti user',
severity: 'success',
message: `알림이 성공적으로 전송되었습니다!`,
clicked: true,
});
}
setModal({ modalName: null });
} catch (e) {
console.error('SW03');
Expand Down

0 comments on commit d7f8072

Please sign in to comment.