diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 7f8f367..0c56e94 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -219,9 +219,9 @@ export default function DashboardPage() { toast.success('交易記錄已刪除'); setDeleteTarget(null); window.location.reload(); - } else if (result.error) { - toast.error(result.error); - } + } else if ((result as any).error) { + toast.error((result as any).error); +} }); }