Skip to content

Commit

Permalink
fix: fix last item history points
Browse files Browse the repository at this point in the history
  • Loading branch information
Fllorent0D committed Feb 7, 2023
1 parent 8393ff6 commit f076fe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/members/elo-member.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class EloMemberService {

private parseTableForHistory(domPage: Document): NumericRankingDetailsV3[] {
const results = [];
const tableHtml: HTMLTableElement = domPage.querySelector('body > div.content > div.table-responsive > table') as HTMLTableElement;
const tableHtml: HTMLTableElement = domPage.querySelector('body > div.content > div.table-responsive > div.table-responsive > table') as HTMLTableElement;
const tBodies: HTMLCollectionOf<HTMLTableSectionElement> = tableHtml.tBodies;
// body > div.content > div.table-responsive > table
if (tBodies.length) {
Expand Down Expand Up @@ -131,6 +131,7 @@ export class EloMemberService {
dateHistoryItem.opponents.push(opponent);
}
}
results.push(dateHistoryItem);
}
return results;
}
Expand Down

0 comments on commit f076fe6

Please sign in to comment.