website refactor
This commit is contained in:
@@ -19,9 +19,9 @@ export default async function TeamLeaderboardPage() {
|
||||
);
|
||||
|
||||
// Prepare data for template
|
||||
const data: TeamSummaryViewModel[] | null = teamsData as TeamSummaryViewModel[] | null;
|
||||
const data: TeamSummaryViewModel[] | null = teamsData;
|
||||
|
||||
const hasData = (teamsData as any)?.length > 0;
|
||||
const hasData = (teamsData?.length ?? 0) > 0;
|
||||
|
||||
// Handle loading state (should be fast since we're using async/await)
|
||||
const isLoading = false;
|
||||
|
||||
Reference in New Issue
Block a user