mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 06:11:12 -05:00
Refactor: Execute remaining phases
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user