Do not show plus sign for living people in WikiTree

This commit is contained in:
Przemek Wiech
2020-01-28 17:51:46 +01:00
parent e4e865695b
commit 17ae9c051b

View File

@@ -279,7 +279,10 @@ function convertPerson(person: Person): JsonIndi {
); );
indi.birth = Object.assign({}, parsedDate, {place: person.BirthLocation}); indi.birth = Object.assign({}, parsedDate, {place: person.BirthLocation});
} }
if (person.DeathDate || person.DeathLocation) { if (
(person.DeathDate && person.DeathDate !== '0000-00-00') ||
person.DeathLocation
) {
const parsedDate = parseDate( const parsedDate = parseDate(
person.DeathDate, person.DeathDate,
person.DataStatus && person.DataStatus.DeathDate, person.DataStatus && person.DataStatus.DeathDate,