UI: Make error fallback data uniform with N/A for all fields
This commit is contained in:
@@ -42,9 +42,9 @@ export class WorldBankService {
|
|||||||
catchError(error => {
|
catchError(error => {
|
||||||
console.error(`Failed to fetch data for ${countryCode}:`, error);
|
console.error(`Failed to fetch data for ${countryCode}:`, error);
|
||||||
return of({
|
return of({
|
||||||
name: `Country Code: ${countryCode}`,
|
name: 'N/A',
|
||||||
capital: 'Data not available',
|
capital: 'N/A',
|
||||||
region: 'Not available in World Bank API',
|
region: 'N/A',
|
||||||
incomeLevel: 'N/A',
|
incomeLevel: 'N/A',
|
||||||
longitude: 'N/A',
|
longitude: 'N/A',
|
||||||
latitude: 'N/A'
|
latitude: 'N/A'
|
||||||
|
|||||||
Reference in New Issue
Block a user