🔧 Simplify destructuring assignments for state variables in useChallongeTests
This commit is contained in:
@@ -33,8 +33,8 @@ export function useChallongeTests(client, apiVersion, tournamentScope) {
|
||||
const tournamentDetailsState = useAsyncState();
|
||||
|
||||
// Destructure for easier access
|
||||
const { data: tournaments, isLoading: loading, error } = tournamentListState;
|
||||
const { isLoading: loadingMore } = loadMoreState;
|
||||
const { data: tournaments, loading, error } = tournamentListState;
|
||||
const { loading: loadingMore } = loadMoreState;
|
||||
|
||||
// Search and filter
|
||||
const searchQuery = ref('');
|
||||
|
||||
Reference in New Issue
Block a user