Skip to content

Commit 5d1c35e

Browse files
committed
compat: check for existence of notes property
Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
1 parent 7a2f582 commit 5d1c35e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/ReminderPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default function ReminderPage({ showCompleted }: ReminderProps) {
152152
sx={{ textDecoration: r.completed ? 'line-through' : 'none', transition: 'transform 0.2s' }}
153153
/>
154154
{
155-
r.notes.length > 0 && (
155+
r.notes && r.notes.length > 0 && (
156156
<Typography variant="body2">{r.notes}</Typography>
157157
)
158158
}

0 commit comments

Comments
 (0)