diff --git a/public/favicon.ico b/public/favicon.ico index df36fcf..2871910 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/components/EventCard.vue b/src/components/EventCard.vue index 5128e6f..20d8065 100644 --- a/src/components/EventCard.vue +++ b/src/components/EventCard.vue @@ -30,7 +30,7 @@ export default {
- {{ eventDate.getDate() }} + {{( "0" + eventDate.getDate()).slice(-2) }}
{{ monthNames[eventDate.getMonth()] }} diff --git a/src/stores/eventStore.ts b/src/stores/eventStore.ts index 55121ba..1b69bad 100644 --- a/src/stores/eventStore.ts +++ b/src/stores/eventStore.ts @@ -1,6 +1,7 @@ import { defineStore } from 'pinia' import type {WasGehtEvent} from '@/models/event'; import router from '@/router'; +import { tenantStore } from './tenantStore'; export const eventStore = defineStore({ id: 'eventStore', @@ -14,9 +15,10 @@ export const eventStore = defineStore({ actions: { async getEvents() { this.isLoading = true; + const tStore = tenantStore(); let endpoint = `${import.meta.env.VITE_API_ENDPOINT}/events`; endpoint += "?" + new URLSearchParams({ - 'city': this.selectedTenant ? this.selectedTenant!.toString() : "", + 'city': tStore.tenant ? tStore.tenant.city : this.selectedTenant ? this.selectedTenant!.toString() : "", 'date': this.selectedDay ? this.selectedDay.toString() : "" }).toString(); const res = await fetch(endpoint);