Skip to content

Commit

Permalink
fix(ranking): 统一获取用户预测数据
Browse files Browse the repository at this point in the history
  • Loading branch information
XYShaoKang committed Mar 19, 2023
1 parent c824642 commit 8865628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content/pages/ranking/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const App: FC = () => {

useEffect(() => {
void (async () => {
if (!rows?.length) return
const res = await dispatch(
fetchContestRanking({
contestSlug: param.contestId,
Expand All @@ -50,7 +51,7 @@ const App: FC = () => {
}
setUserInfos(userInfos)
})()
}, [dispatch, param, hasMyRank])
}, [dispatch, param, hasMyRank, rows])

useEffect(() => {
dispatch(fetchContestInfo(param.contestId))
Expand Down

0 comments on commit 8865628

Please sign in to comment.