Fix critical path catch blocks

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:32:01 +00:00
parent 05ba99e368
commit 5e789c7b4b
14 changed files with 33 additions and 33 deletions

View File

@@ -167,7 +167,7 @@ export function UppyPhotoSubmissionUpload({
p === photo ? { ...p, url: cloudflareUrl, uploadStatus: 'uploaded' as const } : p
));
} catch (error) {
} catch (error: unknown) {
console.error('Upload error:', error);
setPhotos(prev => prev.map(p =>
p === photo ? { ...p, uploadStatus: 'failed' as const } : p
@@ -255,7 +255,7 @@ export function UppyPhotoSubmissionUpload({
setTitle('');
setPhotos([]);
onSubmissionComplete?.();
} catch (error) {
} catch (error: unknown) {
console.error('Submission error:', error);
toast({
variant: 'destructive',