From e891d259a56f51d80fd8925ec7d5b1de8a4edffe Mon Sep 17 00:00:00 2001
From: Chris Johnston <christopher_johnston@me.com>
Date: Mon, 8 Jan 2024 21:22:30 +0000
Subject: add shares to paidFor in reimbursement (#32)

---
 src/components/expense-form.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/expense-form.tsx')

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,
-- 
cgit v1.3

