Skip to content

Commit

Permalink
Merge pull request #14 from REAN-Foundation/feature/spell_check
Browse files Browse the repository at this point in the history
Corrected Occurrence Spell
  • Loading branch information
tabbasum-rean authored May 17, 2023
2 parents 82e3570 + e03e147 commit 6590869
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/awards/participant/participant.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class ParticipantController extends BaseController {
}
acc[x.Category?.Name].Badges[x.Name] = {
BadgeName: x.Name,
Occurence: 0,
Occurrences: 0,
BadgeList: [],
};
return acc;
Expand Down Expand Up @@ -194,10 +194,10 @@ export class ParticipantController extends BaseController {
bArr = bArr.sort((a, b) => {
return a.Badge.Name.localeCompare(b.Badge.Name);
});
const occurence = bArr.length;
const occurrences = bArr.length;
badges[key].Badges[badgeName] = {
BadgeName: badgeName,
Occurence: occurence,
Occurrences: occurrences,
BadgeList: bArr,
};
}
Expand Down

0 comments on commit 6590869

Please # to comment.