mirror of
https://github.com/spliit-app/spliit.git
synced 2026-03-05 12:16:13 +01:00
paid for all, split evenly (#59)
This commit is contained in:
@@ -106,7 +106,11 @@ export function ExpenseForm({
|
|||||||
expenseDate: new Date(),
|
expenseDate: new Date(),
|
||||||
amount: 0,
|
amount: 0,
|
||||||
category: 0, // category with Id 0 is General
|
category: 0, // category with Id 0 is General
|
||||||
paidFor: [],
|
// paid for all, split evenly
|
||||||
|
paidFor: group.participants.map(({ id }) => ({
|
||||||
|
participant: id,
|
||||||
|
shares: 1,
|
||||||
|
})),
|
||||||
paidBy: getSelectedPayer(),
|
paidBy: getSelectedPayer(),
|
||||||
isReimbursement: false,
|
isReimbursement: false,
|
||||||
splitMode: 'EVENLY',
|
splitMode: 'EVENLY',
|
||||||
|
|||||||
Reference in New Issue
Block a user