Skip to content

Commit

Permalink
Fixing the birthdate bug (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama authored Apr 2, 2024
1 parent 249f4e5 commit 7e402e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/components/UpdateUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 7e402e8

Please sign in to comment.