Skip to content

Commit

Permalink
Fix contest problem bug
Browse files Browse the repository at this point in the history
  • Loading branch information
langningchen committed Nov 28, 2024
1 parent 62de22b commit 89da306
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

All notable changes to the "cyezoi" extension will be documented in this file.

## v0.0.28
## v0.0.29

- **Add count badge and loading icon**
- Add vote problem solution
- Fix displaying `{0}` etc
- Fix contest problem bug

Want to see the previous log? [Click here](https://github.com/CYEZOI/cyezoi-helper/commits/main/CHANGELOG.md)
2 changes: 1 addition & 1 deletion res/html/problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ window.addEventListener('DOMContentLoaded', () => {
enableTab('Problem', problemHTML);
focusTab('Problem');

const contestList = data.ctdocs.concat(data.htdocs);
const contestList = (data.ctdocs || []).concat(data.htdocs);
var relatedHTML = '';
if (contestList.length > 0) {
contestList.sort((a, b) => new Date(b.beginAt) - new Date(a.beginAt));
Expand Down

0 comments on commit 89da306

Please sign in to comment.