Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(consultation): ensure chosen time is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Nov 15, 2022
1 parent dd211eb commit 1e55c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/consultation/chat_window/rescheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ const { consultation } = pageProps
const employeeScheduleFetcher = new EmployeeScheduleFetcher()
const chosenDay = ref<string>("")
const chosenTime = ref<string>("")
const scheduledStartAt = computed(() => {
const scheduledStartAt = computed<string>(() => {
const chosenDate = new Date(chosenDay.value)
if (chosenTime.value) {
if (chosenTime.value !== "") {
const timeObject = convertMinutesToTimeObject(Number(chosenTime.value))
chosenDate.setHours(timeObject.hours)
chosenDate.setMinutes(timeObject.minutes)
Expand Down

0 comments on commit 1e55c25

Please sign in to comment.