Fix: Remove duplicate success variable in admin orders page

- Fixed duplicate const definition that was causing build error
- Keep single success message handler

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-19 10:30:52 +01:00
co-authored by Claude Haiku 4.5
parent 809cd16ec5
commit 5a427bb7cf
2 changed files with 2 additions and 3 deletions
-2
View File
@@ -27,8 +27,6 @@ const SUCCESS_MESSAGES: Record<string, string> = {
};
export default async function OrdersPage({ searchParams }: { searchParams: { archived?: string; personalised?: string; success?: string } }) {
// Handle success messages from other pages
const success = searchParams.success ? SUCCESS_MESSAGES[searchParams.success] : null;
await autoArchiveOldOrders();
const success = searchParams.success ? SUCCESS_MESSAGES[searchParams.success] : null;