Find why this generated helper still throws for a partially populated profile.
JavaScript
function cityLabel(account) {
return account?.profile.address.city ?? 'missing';
}
console.log(cityLabel({ profile: {} }));
function cityLabel(account) {
return account?.profile.address.city ?? 'missing';
}
console.log(cityLabel({ profile: {} }));