mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-12 18:46:13 +01:00
paid for all, split evenly (#59)
This commit is contained in:
@@ -106,7 +106,11 @@ export function ExpenseForm({
|
||||
expenseDate: new Date(),
|
||||
amount: 0,
|
||||
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(),
|
||||
isReimbursement: false,
|
||||
splitMode: 'EVENLY',
|
||||
|
||||
Reference in New Issue
Block a user