Fix: Approve database migration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-17 14:40:48 +00:00
parent 0db54b402b
commit 4ab59e2ec2
29 changed files with 180 additions and 112 deletions

View File

@@ -16,6 +16,7 @@ import { useUserRole } from '@/hooks/useUserRole';
import { toast } from '@/hooks/use-toast';
import { submitCompanyCreation } from '@/lib/companyHelpers';
import { useAuthModal } from '@/hooks/useAuthModal';
import { getErrorMessage } from '@/lib/errorHandler';
export default function Designers() {
const navigate = useNavigate();
@@ -36,8 +37,9 @@ export default function Designers() {
description: "Your submission has been sent for review."
});
setIsCreateModalOpen(false);
} catch (error: any) {
toast({ title: "Error", description: error.message || "Failed to submit designer.", variant: "destructive" });
} catch (error) {
const errorMsg = getErrorMessage(error);
toast({ title: "Error", description: errorMsg, variant: "destructive" });
}
};