diff --git a/client/src/components/UpdateUser.vue b/client/src/components/UpdateUser.vue index bc7b3a6f..e727550f 100644 --- a/client/src/components/UpdateUser.vue +++ b/client/src/components/UpdateUser.vue @@ -205,11 +205,15 @@ export default { } }) - watch([birthdayDate, joiningDate], ([newBirthdayDate, newJoiningDate]) => { - if (newBirthdayDate) selectedUser.value.birthday = formatDate(newBirthdayDate) + watch([ joiningDate], ([ newJoiningDate]) => { if (newJoiningDate) selectedUser.value.joining_at = formatDate(newJoiningDate) }) + watch([birthdayDate], ([newBirthdayDate,]) => { + if (newBirthdayDate) selectedUser.value.birthday = formatDate(newBirthdayDate) + }) + + const birthdayPicker = ref(false) const joiningDatePicker = ref(false) const toggleDatePicker = (picker: string) => {