Skip to content
Snippets Groups Projects
Commit 70b56d81 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Fix birth date API validation

parent 756af8a3
No related branches found
No related tags found
No related merge requests found
...@@ -237,7 +237,7 @@ class PersonSelect extends VPULitElementJQuery { ...@@ -237,7 +237,7 @@ class PersonSelect extends VPULitElementJQuery {
let text = person["name"]; let text = person["name"];
// add birth date to name if present // add birth date to name if present
if (this.showBirthDate && (person["birthDate"] !== undefined) && (person["birthDate"] !== "")) { if (this.showBirthDate && (person["birthDate"] !== undefined) && (person["birthDate"] !== null)) {
const date = new Date(person["birthDate"]); const date = new Date(person["birthDate"]);
text += ` (${date.toLocaleDateString("de-AT")})`; text += ` (${date.toLocaleDateString("de-AT")})`;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment