Continue console cleanup

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 18:07:25 +00:00
parent 431b5197ba
commit c7f3e9e1b2
28 changed files with 99 additions and 69 deletions

View File

@@ -22,6 +22,7 @@ import { Label } from '@/components/ui/label';
import { supabase } from '@/integrations/supabase/client';
import { useAuth } from '@/hooks/useAuth';
import { useToast } from '@/hooks/use-toast';
import { getErrorMessage } from '@/lib/errorHandler';
interface ReportButtonProps {
entityType: 'review' | 'profile' | 'content_submission';
@@ -69,10 +70,9 @@ export function ReportButton({ entityType, entityId, className }: ReportButtonPr
setReportType('');
setReason('');
} catch (error: unknown) {
console.error('Error submitting report:', error);
toast({
title: "Error",
description: "Failed to submit report. Please try again.",
description: getErrorMessage(error),
variant: "destructive",
});
} finally {