UI: Make error fallback data uniform with N/A for all fields

This commit is contained in:
2026-02-14 15:38:21 -05:00
parent 4fee739089
commit 11e787396c

View File

@@ -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'