Fix TypeScript issues
Some checks failed
CI / checks (push) Failing after 1m35s

This commit is contained in:
Sebastien Castiel
2025-04-19 15:46:37 -04:00
parent d77411c21e
commit e63f3aa68f
2 changed files with 4 additions and 4 deletions

View File

@@ -191,7 +191,7 @@ function ReceiptDialogContent() {
<Unknown /> <Unknown />
) )
) : ( ) : (
'' || '…' ''
)} )}
</div> </div>
</div> </div>

View File

@@ -44,6 +44,7 @@ import { calculateShare } from '@/lib/totals'
import { cn } from '@/lib/utils' import { cn } from '@/lib/utils'
import { AppRouterOutput } from '@/trpc/routers/_app' import { AppRouterOutput } from '@/trpc/routers/_app'
import { zodResolver } from '@hookform/resolvers/zod' import { zodResolver } from '@hookform/resolvers/zod'
import { RecurrenceRule } from '@prisma/client'
import { Save } from 'lucide-react' import { Save } from 'lucide-react'
import { useTranslations } from 'next-intl' import { useTranslations } from 'next-intl'
import Link from 'next/link' import Link from 'next/link'
@@ -54,7 +55,6 @@ import { match } from 'ts-pattern'
import { DeletePopup } from '../../../../components/delete-popup' import { DeletePopup } from '../../../../components/delete-popup'
import { extractCategoryFromTitle } from '../../../../components/expense-form-actions' import { extractCategoryFromTitle } from '../../../../components/expense-form-actions'
import { Textarea } from '../../../../components/ui/textarea' import { Textarea } from '../../../../components/ui/textarea'
import { RecurrenceRule } from '@prisma/client'
const enforceCurrencyPattern = (value: string) => const enforceCurrencyPattern = (value: string) =>
value value
@@ -190,7 +190,7 @@ export function ExpenseForm({
isReimbursement: expense.isReimbursement, isReimbursement: expense.isReimbursement,
documents: expense.documents, documents: expense.documents,
notes: expense.notes ?? '', notes: expense.notes ?? '',
recurrenceRule: expense.recurrenceRule, recurrenceRule: expense.recurrenceRule ?? undefined,
} }
: searchParams.get('reimbursement') : searchParams.get('reimbursement')
? { ? {
@@ -516,7 +516,7 @@ export function ExpenseForm({
defaultValue={getSelectedRecurrenceRule(field)} defaultValue={getSelectedRecurrenceRule(field)}
> >
<SelectTrigger> <SelectTrigger>
<SelectValue placeholder="NONE"/> <SelectValue placeholder="NONE" />
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>
<SelectItem value="NONE"> <SelectItem value="NONE">