Skip to content

Commit

Permalink
fix: empty notifications state (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Oct 23, 2023
1 parent c166503 commit ca579fe
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 ca579fe

Please sign in to comment.