We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 257c091 + 714d5ab commit 43cf7fbCopy full SHA for 43cf7fb
packages/core/src/exts/contest.ts
@@ -10,7 +10,9 @@ export async function ContestExtension(generator: Generator): Promise<Extension>
10
lc.user_contest_info(generator.config.username)
11
.then((data) => {
12
try {
13
- const history = data.userContestRankingHistory.filter((x) => x.attended);
+ const history = Array.isArray(data.userContestRankingHistory)
14
+ ? data.userContestRankingHistory.filter((x) => x.attended)
15
+ : [];
16
17
if (history.length === 0) {
18
resolve(null);
0 commit comments