Skip to content

Commit

Permalink
fixed total badges bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanSharma100 committed Oct 18, 2021
1 parent 106875e commit 682bad3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default {
addFinalData() {
const dta = this.$props.data.map((dta, index) => {
dta["rank"] = index + 1;
dta.badges["total"] = dta.badges.track1 + dta.badges.track2;
dta.badges["total"] =
parseInt(dta.badges.track1) + parseInt(dta.badges.track2);
dta.badges["remaining"] =
6 - dta.badges.track1 + (6 - dta.badges.track2);
return dta;
Expand Down

0 comments on commit 682bad3

Please sign in to comment.