Fix feature path catch blocks

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 16:01:45 +00:00
parent dcd5c9890b
commit 29fb04d03d
20 changed files with 42 additions and 40 deletions

View File

@@ -27,7 +27,7 @@ export function useCountries() {
value: country.toLowerCase().replace(/\s+/g, '_')
}))
);
} catch (error) {
} catch (error: unknown) {
console.error('Error fetching countries:', error);
setCountries([]);
} finally {
@@ -72,7 +72,7 @@ export function useStatesProvinces(country?: string) {
value: state.toLowerCase().replace(/\s+/g, '_')
}))
);
} catch (error) {
} catch (error: unknown) {
console.error('Error fetching states/provinces:', error);
setStatesProvinces([]);
} finally {
@@ -108,7 +108,7 @@ export function useManufacturers() {
value: company.id
}))
);
} catch (error) {
} catch (error: unknown) {
console.error('Error fetching manufacturers:', error);
setManufacturers([]);
} finally {
@@ -149,7 +149,7 @@ export function useRideModels(manufacturerId?: string) {
value: model.id
}))
);
} catch (error) {
} catch (error: unknown) {
console.error('Error fetching ride models:', error);
setRideModels([]);
} finally {
@@ -188,7 +188,7 @@ export function useCompanyHeadquarters() {
value: hq.toLowerCase().replace(/\s+/g, '_')
}))
);
} catch (error) {
} catch (error: unknown) {
console.error('Error fetching headquarters:', error);
setHeadquarters([]);
} finally {
@@ -224,7 +224,7 @@ export function useOperators() {
value: company.id
}))
);
} catch (error) {
} catch (error: unknown) {
console.error('Error fetching operators:', error);
setOperators([]);
} finally {
@@ -260,7 +260,7 @@ export function usePropertyOwners() {
value: company.id
}))
);
} catch (error) {
} catch (error: unknown) {
console.error('Error fetching property owners:', error);
setPropertyOwners([]);
} finally {