🔧 Simplify destructuring assignments for state variables in useChallongeTests

This commit is contained in:
2026-01-29 14:41:40 +00:00
parent a9c6454e8f
commit e6648f6ad0
2 changed files with 3 additions and 3 deletions

View File

@@ -33,8 +33,8 @@ export function useChallongeTests(client, apiVersion, tournamentScope) {
const tournamentDetailsState = useAsyncState(); const tournamentDetailsState = useAsyncState();
// Destructure for easier access // Destructure for easier access
const { data: tournaments, isLoading: loading, error } = tournamentListState; const { data: tournaments, loading, error } = tournamentListState;
const { isLoading: loadingMore } = loadMoreState; const { loading: loadingMore } = loadMoreState;
// Search and filter // Search and filter
const searchQuery = ref(''); const searchQuery = ref('');

View File

@@ -183,7 +183,7 @@
<template #tournament-details="{ tournament, isExpanded }"> <template #tournament-details="{ tournament, isExpanded }">
<TournamentDetail <TournamentDetail
:tournament-details="tournamentDetails" :tournament-details="tournamentDetails"
:loading="tournamentDetailsState.isLoading.value" :loading="tournamentDetailsState.loading.value"
:error="tournamentDetailsState.error.value" :error="tournamentDetailsState.error.value"
:is-expanded="isExpanded" :is-expanded="isExpanded"
/> />