Skip to content

Commit

Permalink
fix: empty notifications state
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Oct 23, 2023
1 parent e58a1e9 commit 17c66b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Notifications/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function Notifications() {
queryFn: () => (user ? Governance.get().getUserNotifications(user) : null),
enabled: !!user && isSubscribed,
})
const latestNotification = userNotifications?.[0].payload_id
const latestNotification = userNotifications?.[0]?.payload_id

const { data: lastNotificationId } = useQuery({
queryKey: [lastNotificationQueryKey],
Expand Down

0 comments on commit 17c66b1

Please sign in to comment.