Minor bug fix.

This commit is contained in:
Eric van der Vlist 2023-01-03 18:24:38 +01:00
parent 44ce641d6a
commit 9e3915c6ce
1 changed files with 3 additions and 0 deletions

View File

@ -20,5 +20,8 @@ export const getVillageOrTown = (address: any) => {
if (address?.address.village) {
return address?.address.village;
}
if (address?.address.city) {
return address?.address.city;
}
return address?.address.town;
};