Enhance security and error handling in various components by refining error catch blocks to ignore specific errors, improving code clarity and consistency across the application.
This commit is contained in:
@@ -100,7 +100,7 @@ const isMemberMenuOpen = ref(false)
|
||||
|
||||
// Reactive auth state from store
|
||||
const isLoggedIn = computed(() => authStore.isLoggedIn)
|
||||
const isAdmin = computed(() => authStore.isAdmin)
|
||||
// const isAdmin = computed(() => authStore.isAdmin)
|
||||
|
||||
const toggleMemberMenu = () => {
|
||||
isMemberMenuOpen.value = !isMemberMenuOpen.value
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { Calendar, Users, BarChart } from 'lucide-vue-next'
|
||||
import { Users } from 'lucide-vue-next'
|
||||
|
||||
const mannschaften = ref([])
|
||||
|
||||
@@ -124,7 +124,7 @@ const loadMannschaften = async () => {
|
||||
return
|
||||
}
|
||||
|
||||
mannschaften.value = lines.slice(1).map((line, index) => {
|
||||
mannschaften.value = lines.slice(1).map((line, _index) => {
|
||||
// Besserer CSV-Parser: Respektiert Anführungszeichen
|
||||
const values = []
|
||||
let current = ''
|
||||
|
||||
@@ -280,7 +280,7 @@ const upcomingGames = computed(() => {
|
||||
|
||||
// Nur Spiele der nächsten 7 Tage
|
||||
return gameDate >= today && gameDate <= in7Days
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
return false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user