We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89627a6 commit da493dcCopy full SHA for da493dc
4 files changed
src/app/groups/[groupId]/expenses/expense-form.tsx
@@ -916,7 +916,8 @@ export function ExpenseForm({
916
groupCurrency,
917
), // Convert to cents
918
expenseDate:
919
- form.watch('expenseDate') ?? new Date(),
+ form.watch('expenseDate') ??
920
+ new Date(),
921
paidFor: field.value.map(
922
({ participant, shares }) => ({
923
participant: {
@@ -950,7 +951,7 @@ export function ExpenseForm({
950
951
name: '',
952
},
953
}),
- locale
954
+ locale,
955
)}
956
)
957
</span>
src/lib/balances.ts
@@ -1,6 +1,6 @@
1
import { getGroupExpenses } from '@/lib/api'
2
-import { Participant } from '@prisma/client'
3
import { calculateShares } from '@/lib/totals'
+import { Participant } from '@prisma/client'
4
5
export type Balances = Record<
6
Participant['id'],
0 commit comments