Skip to content

Commit

Permalink
fix: alias missed in competition problem detail
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed May 5, 2024
1 parent fb8dc80 commit 6269e29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/competitions/$id/problems/$alias.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class CompetitionProblem extends React.Component<Props, State> {
alias = aliasOrIndex;
index = matchedProblemByAliasIndex;
} else {
index = alphabetToNumber(match.params.alias);
alias = aliasOrIndex;
index = alphabetToNumber(aliasOrIndex);
}

const problem = rows?.[index] || ({} as IProblem);
Expand Down

0 comments on commit 6269e29

Please sign in to comment.