diff --git a/resources/js/app.js b/resources/js/app.js
index 2ef3ab8..15b83c1 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -52,11 +52,11 @@ Alpine.data('form', () => ({
datenschutz: false,
},
isUnder18: function () {
- if (!this.value.birthday || !this.value.date) {
+ if (!this.value.birthday) {
return false;
}
- return dayjs(this.value.birthday, 'DD.MM.YYYY').add(18, 'year').isAfter(dayjs(this.value.date, 'DD.MM.YYYY'));
+ return dayjs(this.value.birthday, 'DD.MM.YYYY').add(18, 'year').isAfter(dayjs());
},
onChangeDate: async function (n) {
const date = dayjs(this.value.date, 'DD.MM.YYYY');