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 => {
|
||||
console.error(`Failed to fetch data for ${countryCode}:`, error);
|
||||
return of({
|
||||
name: `Country Code: ${countryCode}`,
|
||||
capital: 'Data not available',
|
||||
region: 'Not available in World Bank API',
|
||||
name: 'N/A',
|
||||
capital: 'N/A',
|
||||
region: 'N/A',
|
||||
incomeLevel: 'N/A',
|
||||
longitude: 'N/A',
|
||||
latitude: 'N/A'
|
||||
|
||||
Reference in New Issue
Block a user