Skip to content

Commit

Permalink
Fixing the birthdate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Mar 27, 2024
1 parent 02e80b4 commit bbaa93c
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 bbaa93c

Please sign in to comment.