Skip to content

Commit

Permalink
fix: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjosethomas committed Dec 12, 2024
1 parent ba290fd commit a6de98b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { NextPage } from 'next'
import { useRouter } from 'next/router'
import { useContext, useState, useEffect } from 'react'

import { PlayerStats } from 'src/types'
import { getPlayerStats } from 'src/api'
import { UserIcon } from 'src/components/Icons/icons'
import { AuthContext, WindowSizeContext } from 'src/contexts'
Expand All @@ -11,7 +12,7 @@ import { AuthenticatedWrapper, UserProfile, GameList } from 'src/components'
const ProfilePage: NextPage = () => {
const router = useRouter()
const { user } = useContext(AuthContext)
const [stats, setStats] = useState({
const [stats, setStats] = useState<PlayerStats>({
regularRating: 0,
regularWins: 0,
regularDraws: 0,
Expand Down Expand Up @@ -74,9 +75,7 @@ const ProfilePage: NextPage = () => {
}

interface Props {
stats: {
[key: string]: number
}
stats: PlayerStats
}
const Profile: React.FC<Props> = (props: Props) => {
const { user } = useContext(AuthContext)
Expand Down

0 comments on commit a6de98b

Please sign in to comment.