aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Johnston <christopher_johnston@me.com>2024-01-08 21:22:30 +0000
committerGitHub <noreply@github.com>2024-01-08 16:22:30 -0500
commite891d259a56f51d80fd8925ec7d5b1de8a4edffe (patch)
tree2256383a937c7e1c3b8912c0cc876327f2d02adf /src
parentd9aeb45c83340f918b53d4d7b3162409ba698f83 (diff)
add shares to paidFor in reimbursement (#32)
Diffstat (limited to 'src')
-rw-r--r--src/components/expense-form.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/expense-form.tsx b/src/components/expense-form.tsx
index c21344a..dff6867 100644
--- a/src/components/expense-form.tsx
+++ b/src/components/expense-form.tsx
@@ -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,