Skip to content

Commit

Permalink
fix: 알람읽는 post함수에 alarmType을 USER로 하드코딩해서 생긴 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
00kang committed Nov 25, 2024
1 parent d53e91d commit 31dd6e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/alarm/AlarmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const AlarmPage = () => {
};

const handleAlarmClick = async (alarm: AlarmItemData) => {
const { actionType, alarmId, isRead, interaction } = alarm;
const { actionType, alarmId, isRead, interaction, alarmType } = alarm;

if (!isRead) {
await markAsRead.mutateAsync({ alarmId, alarmType: "USER" });
await markAsRead.mutateAsync({ alarmId, alarmType });
}

handleNavigation(actionType, interaction.interactionId);
Expand Down

0 comments on commit 31dd6e2

Please sign in to comment.