fix build

This commit is contained in:
dohsimpson
2025-01-10 23:05:18 -05:00
parent 6c5853adea
commit 1bb968b7c1

View File

@@ -124,8 +124,8 @@ export default function AddEditHabitModal({ onClose, onSave, habit }: AddEditHab
{(() => { {(() => {
try { try {
return parseNaturalLanguageRRule(ruleText).toText() return parseNaturalLanguageRRule(ruleText).toText()
} catch (e: any) { } catch (e: unknown) {
return `Invalid rule: ${e.message}` return `Invalid rule: ${e instanceof Error ? e.message : 'Invalid recurrence rule'}`
} }
})()} })()}
</span> </span>