fix top cowboys

This commit is contained in:
keyan 2023-08-07 16:26:15 -05:00
parent 1b1463d2d9
commit a3b668587d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ export default function UserList ({ ssrData, query, variables, destructureData }
useEffect(() => { useEffect(() => {
// shift the stat we are sorting by to the front // shift the stat we are sorting by to the front
const comps = [...STAT_COMPONENTS] const comps = [...STAT_COMPONENTS]
setStatComps(seperate([...comps.splice(STAT_POS[variables.by || 0], 1), ...comps], Seperator)) setStatComps(seperate([...comps.splice(STAT_POS[variables?.by || 0], 1), ...comps], Seperator))
}, [variables?.by]) }, [variables?.by])
const { users, cursor } = useMemo(() => { const { users, cursor } = useMemo(() => {