|
@@ -28,7 +28,7 @@ const InAppNotificationPageBody: FC<Props> = (props) => {
|
|
|
const { data: unopendNotificationData } = useSWRxInAppNotifications(limit, UnopenedNotificationOffset, InAppNotificationStatuses.STATUS_UNOPENED);
|
|
const { data: unopendNotificationData } = useSWRxInAppNotifications(limit, UnopenedNotificationOffset, InAppNotificationStatuses.STATUS_UNOPENED);
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
- if (inAppNotificationData == null) {
|
|
|
|
|
|
|
+ if (inAppNotificationData == null || unopendNotificationData == null) {
|
|
|
return (
|
|
return (
|
|
|
<div className="wiki">
|
|
<div className="wiki">
|
|
|
<div className="text-muted text-center">
|
|
<div className="text-muted text-center">
|
|
@@ -82,8 +82,8 @@ const InAppNotificationPageBody: FC<Props> = (props) => {
|
|
|
<PaginationWrapper
|
|
<PaginationWrapper
|
|
|
activePage={activeUnopenedNotificationPage}
|
|
activePage={activeUnopenedNotificationPage}
|
|
|
changePage={setUnopenedPageNumber}
|
|
changePage={setUnopenedPageNumber}
|
|
|
- totalItemsCount={inAppNotificationData.totalDocs}
|
|
|
|
|
- pagingLimit={inAppNotificationData.limit}
|
|
|
|
|
|
|
+ totalItemsCount={unopendNotificationData.totalDocs}
|
|
|
|
|
+ pagingLimit={unopendNotificationData.limit}
|
|
|
align="center"
|
|
align="center"
|
|
|
size="sm"
|
|
size="sm"
|
|
|
/>
|
|
/>
|