kevinanielsen/flags-game

View on GitHub
components/leaderboard.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function LeaderBoard has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const LeaderBoard = () => {
  const { data, isLoading, error } = useQuery({
    queryKey: ["top-scores"],
    queryFn: async () => {
      const res = await axios.get<TScore[]>("/api/top-scores");
Severity: Minor
Found in components/leaderboard.tsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status