Skip to content

Commit

Permalink
Replaced broken code
Browse files Browse the repository at this point in the history
  • Loading branch information
chopster44 committed Mar 13, 2023
1 parent 8480370 commit 16e4330
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/API/edulink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ export class Edulink {
* @return {Day}
*/
public async getToday(): Promise<Day> {
//@ts-ignore
let rawWeek: Week = await this.getThisWeek();
for (let i = 0; i < rawWeek.days.length; i++) {
if (rawWeek.days[i].is_current) {
return rawWeek.days[i];
// @ts-ignore
let thisweek: Week = await this.getThisWeek();
for (let i = 0; i < thisweek.days.length; i++) {
if(thisweek.days[i].is_current) {
return thisweek.days[i];
}
}
}
Expand Down

0 comments on commit 16e4330

Please sign in to comment.