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:
co-authored by
Claude Haiku 4.5
parent
809cd16ec5
commit
5a427bb7cf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user