Refactor: Execute remaining phases

This commit is contained in:
gpt-engineer-app[bot]
2025-10-20 13:30:02 +00:00
parent 6f1baef8c0
commit 368b97da04
10 changed files with 167 additions and 105 deletions

View File

@@ -122,10 +122,9 @@ export function LocationSearch({ onLocationSelect, initialLocationId, className
setResults(data);
setShowResults(true);
setSearchError(null);
} catch (error) {
const errorMsg = error instanceof Error ? error.message : 'Failed to search locations. Please check your connection.';
console.error('Error searching locations:', error);
setSearchError(errorMsg);
} catch (error: unknown) {
logger.error('Location search failed', { query: searchQuery });
setSearchError('Failed to search locations. Please check your connection.');
setResults([]);
setShowResults(false);
} finally {