Skip to content

Commit

Permalink
fix: Fix condition to return kbList when its length is greater than o…
Browse files Browse the repository at this point in the history
…r equal to zero
  • Loading branch information
vvbbnn00 committed Sep 12, 2024
1 parent b93df55 commit 4a849ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ README.md
docker.env
images
docs
```
.env
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ next-env.d.ts
.idea
/public/date_config.json
/src/app/streamed_api/test/

.env
2 changes: 1 addition & 1 deletion src/utils/information.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function getRawLectureTable(school_year, semester, cookieJar) {
credentials: 'include',
})).json();

if (ret['kbList'] && ret['kbList'].length > 0) {
if (ret['kbList'] && ret['kbList'].length >= 0) {
return ret['kbList'];
}

Expand Down

0 comments on commit 4a849ba

Please sign in to comment.