Refactor: Update type safety status

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 17:19:19 +00:00
parent 81fccdc4d0
commit e580f1f4b4
21 changed files with 55 additions and 49 deletions

View File

@@ -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',