kaori 4 лет назад
Родитель
Сommit
137825bd3e

+ 5 - 2
packages/app/src/components/InAppNotification/InAppNotificationPage.tsx

@@ -27,8 +27,11 @@ const InAppNotificationPageBody: FC<Props> = (props) => {
 
     let categoryStatus;
 
-    if (status === InAppNotificationStatuses.STATUS_UNOPENED) {
-      categoryStatus = InAppNotificationStatuses.STATUS_UNOPENED;
+    switch (status) {
+      case InAppNotificationStatuses.STATUS_UNOPENED:
+        categoryStatus = InAppNotificationStatuses.STATUS_UNOPENED;
+        break;
+      default:
     }
 
     const { data: notificationData, mutate } = useSWRxInAppNotifications(limit, offset, categoryStatus);