Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dohsimpson committed Jan 11, 2025
1 parent 6c5853a commit 1bb968b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/AddEditHabitModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export default function AddEditHabitModal({ onClose, onSave, habit }: AddEditHab
{(() => {
try {
return parseNaturalLanguageRRule(ruleText).toText()
} catch (e: any) {
return `Invalid rule: ${e.message}`
} catch (e: unknown) {
return `Invalid rule: ${e instanceof Error ? e.message : 'Invalid recurrence rule'}`
}
})()}
</span>
Expand Down

0 comments on commit 1bb968b

Please sign in to comment.