mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 16:31:12 -05:00
Fix critical path catch blocks
This commit is contained in:
@@ -49,7 +49,7 @@ export const useAvatarUpload = (
|
||||
handleSuccess('Avatar updated', 'Your avatar has been successfully updated.');
|
||||
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
// Rollback on error
|
||||
setState({
|
||||
url: initialUrl,
|
||||
|
||||
Reference in New Issue
Block a user