Skip to content

Commit 1f3115d

Browse files
committed
Set split mode to EVENLY for reimbursements in ExpenseForm
Updates expense-form.tsx so that Mark As Paid reimbursements always use the EVENLY split mode rather than the group’s saved defaults. A comment explains that default splitting options are ignored in this special case.
1 parent a11efc7 commit 1f3115d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/groups/[groupId]/expenses/expense-form.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ export function ExpenseForm({
210210
: undefined,
211211
],
212212
isReimbursement: true,
213-
splitMode: defaultSplittingOptions.splitMode,
213+
// Mark as paid reimbursements should always be split evenly
214+
// independent of any stored default splitting options.
215+
splitMode: 'EVENLY',
214216
saveDefaultSplittingOptions: false,
215217
documents: [],
216218
notes: '',

0 commit comments

Comments
 (0)