aboutsummaryrefslogtreecommitdiff
path: root/src/screens/main/NotificationsScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-02-05 17:24:11 -0500
committerGitHub <noreply@github.com>2021-02-05 17:24:11 -0500
commit63c7fa6c54b835719435802ad1ddc33a74c872fe (patch)
tree3c832c79523fda4d3a245e8458ce3329304012b3 /src/screens/main/NotificationsScreen.tsx
parent55914efe03da970f03970a2a9fa85196fce41b75 (diff)
parent037ff4baa3dc34ee717c9020f05a1b56b1cf153e (diff)
Merge pull request #219 from ashmgarv/tma-625-failed-reply-navigation
[TMA - 625] Fix non-navigatable reply notification
Diffstat (limited to 'src/screens/main/NotificationsScreen.tsx')
-rw-r--r--src/screens/main/NotificationsScreen.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx
index d9952aa8..f35bb22c 100644
--- a/src/screens/main/NotificationsScreen.tsx
+++ b/src/screens/main/NotificationsScreen.tsx
@@ -35,6 +35,9 @@ const NotificationsScreen: React.FC = () => {
const {notifications} = useSelector(
(state: RootState) => state.notifications,
);
+
+ const {user: loggedInUser} = useSelector((state: RootState) => state.user);
+
const [sectionedNotifications, setSectionedNotifications] = useState<
{title: 'Today' | 'Yesterday' | 'This Week'; data: NotificationType[]}[]
>([]);
@@ -130,7 +133,7 @@ const NotificationsScreen: React.FC = () => {
<Notification
item={item}
screenType={ScreenType.Notifications}
- moments={item.notification_type === 'CMT' ? loggedInUserMoments : []}
+ loggedInUser={loggedInUser}
/>
);