diff --git a/app/[locale]/admin/page.tsx b/app/[locale]/admin/page.tsx index c080b1f..6f4bdac 100644 --- a/app/[locale]/admin/page.tsx +++ b/app/[locale]/admin/page.tsx @@ -376,7 +376,7 @@ export default function AdminPage({ params }: { params: { locale: string } }) { const handleCreateSpecial = async (e: React.FormEvent) => { e.preventDefault(); if (!newSpecialName.de.trim() && !newSpecialName.en.trim()) return; - + // Validate unlock steps const unlockStepsError = validateUnlockSteps(newSpecialUnlockSteps); if (unlockStepsError) { @@ -384,7 +384,7 @@ export default function AdminPage({ params }: { params: { locale: string } }) { return; } setNewSpecialUnlockStepsError(null); - + const res = await fetch('/api/specials', { method: 'POST', headers: getAuthHeaders(), @@ -501,7 +501,7 @@ export default function AdminPage({ params }: { params: { locale: string } }) { const saveEditedSpecial = async () => { if (editingSpecialId === null) return; - + // Validate unlock steps const unlockStepsError = validateUnlockSteps(editSpecialUnlockSteps); if (unlockStepsError) { @@ -509,7 +509,7 @@ export default function AdminPage({ params }: { params: { locale: string } }) { return; } setEditSpecialUnlockStepsError(null); - + const res = await fetch('/api/specials', { method: 'PUT', headers: getAuthHeaders(), @@ -1337,224 +1337,224 @@ export default function AdminPage({ params }: { params: { locale: string } }) { {showSpecials && ( <>