Remove debug console logs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:51:53 +00:00
parent 5e789c7b4b
commit d78356e673
26 changed files with 37 additions and 156 deletions

View File

@@ -1,6 +1,7 @@
import { useEffect } from 'react';
import { useAuth } from '@/hooks/useAuth';
import { useUnitPreferences } from '@/hooks/useUnitPreferences';
import { logger } from '@/lib/logger';
function isLocalStorageAvailable(): boolean {
try {
@@ -24,11 +25,11 @@ export function useLocationAutoDetect() {
// Only run auto-detection after preferences have loaded
if (loading) return;
// Check if localStorage is available
if (!isLocalStorageAvailable()) {
console.warn('localStorage is not available, skipping location auto-detection');
return;
}
// Check if localStorage is available
if (!isLocalStorageAvailable()) {
logger.warn('localStorage is not available, skipping location auto-detection');
return;
}
// Check if we've already attempted detection
const hasAttemptedDetection = localStorage.getItem('location_detection_attempted');