mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-30 13:26:58 -05:00
Fix critical path catch blocks
This commit is contained in:
@@ -82,7 +82,7 @@ export function PhotoSubmissionDisplay({ submissionId }: PhotoSubmissionDisplayP
|
||||
|
||||
setPhotos(data || []);
|
||||
console.log(`✅ Successfully loaded ${data?.length || 0} photos`);
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
const errorMsg = getErrorMessage(error);
|
||||
console.error('❌ PhotoSubmissionDisplay error:', errorMsg);
|
||||
setPhotos([]);
|
||||
|
||||
Reference in New Issue
Block a user