mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-20 22:24:28 +01:00
fix build
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user