diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index 74a89ac..d4cc389 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -156,6 +156,10 @@ export default function SiteSettingsPage() { return } const eventName = goalForm.event_name.trim().toLowerCase().replace(/\s+/g, '_') + if (eventName.length > 64) { + toast.error('Event name must be 64 characters or less') + return + } if (!/^[a-zA-Z0-9_]+$/.test(eventName)) { toast.error('Event name can only contain letters, numbers, and underscores') return