mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 18:11:12 -05:00
Fix internal error
This commit is contained in:
@@ -221,11 +221,11 @@ export function LocationDiff({ oldLocation, newLocation, compact = false }: Loca
|
||||
}
|
||||
|
||||
if (typeof loc === 'object') {
|
||||
const parts = [];
|
||||
if (loc.city) parts.push(loc.city);
|
||||
if (loc.state_province) parts.push(loc.state_province);
|
||||
if (loc.country && loc.country !== loc.state_province) parts.push(loc.country);
|
||||
if (loc.postal_code) parts.push(loc.postal_code);
|
||||
const parts: string[] = [];
|
||||
if (loc.city) parts.push(String(loc.city));
|
||||
if (loc.state_province) parts.push(String(loc.state_province));
|
||||
if (loc.country && loc.country !== loc.state_province) parts.push(String(loc.country));
|
||||
if (loc.postal_code) parts.push(String(loc.postal_code));
|
||||
|
||||
let locationStr = parts.join(', ') || 'Unknown';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user