Skip to content

Commit

Permalink
Merge pull request #72 from gdsc-ncku/jason
Browse files Browse the repository at this point in the history
hotfix: fix MySchedule select date issue
  • Loading branch information
jason810496 authored Feb 21, 2024
2 parents 4b8f437 + 7911297 commit cd3d697
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/views/info/MySchedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ import events from "../../data/event.json";
import StripCard from "@/components/StripCard.vue";
const selectedDate = ref("3/2");
const dateList = ref(['3/2' , '3/3']);
const selectDate = (date) => {
selectedDate.value = date;
};
const eventStore = useEventStore();
const dateStore = useDateStore();
Expand All @@ -70,7 +66,7 @@ onMounted(() => {
});
const currentEvents = computed(() => {
return events.filter((event) => event.date === selectedDate.value && eventStore.isEventSubscribed(event.id));
return events.filter((event) => event.date === dateStore.selectedDate && eventStore.isEventSubscribed(event.id));
});
</script>

0 comments on commit cd3d697

Please sign in to comment.