mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 07:11:11 -05:00
Refactor: Update type safety status
This commit is contained in:
@@ -69,7 +69,7 @@ export function useUnitPreferences() {
|
||||
await autoDetectPreferences();
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
logger.error('Error loading unit preferences', {
|
||||
userId: user?.id,
|
||||
action: 'load_unit_preferences',
|
||||
@@ -115,7 +115,7 @@ export function useUnitPreferences() {
|
||||
|
||||
return newPreferences;
|
||||
}
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
logger.error('Error auto-detecting location', {
|
||||
userId: user?.id,
|
||||
action: 'auto_detect_location',
|
||||
@@ -149,7 +149,7 @@ export function useUnitPreferences() {
|
||||
} else {
|
||||
localStorage.setItem('unit_preferences', JSON.stringify(updated));
|
||||
}
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
logger.error('Error saving unit preferences', {
|
||||
userId: user?.id,
|
||||
action: 'save_unit_preferences',
|
||||
|
||||
Reference in New Issue
Block a user