Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
294ce7946e
commit
3eb2209e3b
@@ -48,9 +48,10 @@ export function CaseExpensesTab({ caseId }: { caseId: string }) {
|
||||
if (upErr) { toast.error("Receipt upload failed", { description: upErr.message }); setSubmitting(false); return; }
|
||||
receipt_storage_path = path;
|
||||
}
|
||||
if (!user?.id) { toast.error("Not signed in"); setSubmitting(false); return; }
|
||||
const { error } = await supabase.from("expenses").insert({
|
||||
case_id: caseId,
|
||||
user_id: user?.id,
|
||||
user_id: user.id,
|
||||
expense_date: form.expense_date,
|
||||
description: form.description.trim(),
|
||||
amount,
|
||||
|
||||
Reference in New Issue
Block a user