From 31dd6e28572bbff91278ec2f9af4b4101e2fc3fa Mon Sep 17 00:00:00 2001 From: 00kang Date: Mon, 25 Nov 2024 17:49:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=95=8C=EB=9E=8C=EC=9D=BD=EB=8A=94=20p?= =?UTF-8?q?ost=ED=95=A8=EC=88=98=EC=97=90=20alarmType=EC=9D=84=20USER?= =?UTF-8?q?=EB=A1=9C=20=ED=95=98=EB=93=9C=EC=BD=94=EB=94=A9=ED=95=B4?= =?UTF-8?q?=EC=84=9C=20=EC=83=9D=EA=B8=B4=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/alarm/AlarmPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/alarm/AlarmPage.tsx b/frontend/src/pages/alarm/AlarmPage.tsx index fbfff354..7dea3b33 100644 --- a/frontend/src/pages/alarm/AlarmPage.tsx +++ b/frontend/src/pages/alarm/AlarmPage.tsx @@ -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);