mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 17:51:14 -05:00
Fix: Resolve logger not found errors
This commit is contained in:
@@ -215,7 +215,7 @@ export default function Profile() {
|
||||
parkCount: parkCount
|
||||
});
|
||||
} catch (error) {
|
||||
logger.error('Error fetching calculated stats', { error });
|
||||
handleNonCriticalError(error, { action: 'Fetch Calculated Stats', metadata: { userId } });
|
||||
toast({
|
||||
variant: 'destructive',
|
||||
description: getErrorMessage(error),
|
||||
@@ -391,7 +391,7 @@ export default function Profile() {
|
||||
|
||||
setRecentActivity(combined);
|
||||
} catch (error) {
|
||||
logger.error('Error fetching recent activity', { error });
|
||||
handleNonCriticalError(error, { action: 'Fetch Recent Activity', metadata: { userId } });
|
||||
toast({
|
||||
variant: 'destructive',
|
||||
description: getErrorMessage(error),
|
||||
@@ -452,7 +452,7 @@ export default function Profile() {
|
||||
await fetchRecentActivity(data.user_id || '');
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error('Error fetching profile', { error });
|
||||
handleNonCriticalError(error, { action: 'Fetch Profile', metadata: { username } });
|
||||
toast({
|
||||
variant: "destructive",
|
||||
title: "Error loading profile",
|
||||
@@ -493,7 +493,7 @@ export default function Profile() {
|
||||
await fetchRecentActivity(user.id);
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error('Error fetching profile', { error });
|
||||
handleNonCriticalError(error, { action: 'Fetch Current User Profile' });
|
||||
toast({
|
||||
variant: "destructive",
|
||||
title: "Error loading profile",
|
||||
|
||||
Reference in New Issue
Block a user