diff --git a/app/components/AddExpenseForm.vue b/app/components/AddExpenseForm.vue index 0c499f8..b0e0d3f 100644 --- a/app/components/AddExpenseForm.vue +++ b/app/components/AddExpenseForm.vue @@ -15,7 +15,7 @@ const emit = defineEmits<{ const description = ref(props.editing?.description ?? '') const amount = ref(props.editing ? fromCents(props.editing.amountCents).toString() : '') -const payerId = ref(props.editing?.payerId ?? props.defaultPayerId ?? props.participants[0]?.id) +const payerId = ref(props.editing?.payerId ?? props.defaultPayerId ?? props.participants[0]!.id) const selectedIds = ref(props.editing?.participantIds ?? props.participants.map(p => p.id)) const error = ref('') diff --git a/app/components/BalanceSummary.vue b/app/components/BalanceSummary.vue index c6c8074..7ce2e09 100644 --- a/app/components/BalanceSummary.vue +++ b/app/components/BalanceSummary.vue @@ -1,6 +1,6 @@