add shares to paidFor in reimbursement (#32)

This commit is contained in:
Chris Johnston
2024-01-08 21:22:30 +00:00
committed by GitHub
parent d9aeb45c83
commit e891d259a5

View File

@@ -76,7 +76,7 @@ export function ExpenseForm({ group, expense, onSubmit, onDelete }: Props) {
paidBy: searchParams.get('from') ?? undefined,
paidFor: [
searchParams.get('to')
? { participant: searchParams.get('to')! }
? { participant: searchParams.get('to')!, shares: 1 }
: undefined,
],
isReimbursement: true,