Skip to content

Commit

Permalink
fix logical error #7
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Sep 15, 2024
1 parent dfb351f commit 8a7ef6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/components/timelines/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ const Notifications: React.FC<Props> = (props) => {
<Button
appearance="subtle"
title={formatMessage({ id: 'timeline.mark_as_read' })}
disabled={notifications.length && marker.last_read_id === notifications[0].id}
disabled={notifications.length && marker && marker.last_read_id === notifications[0].id}
onClick={read}
style={{ padding: '4px' }}
>
Expand Down

0 comments on commit 8a7ef6a

Please sign in to comment.