Skip to content

Commit

Permalink
Merge pull request #29 from edx/schen/percent
Browse files Browse the repository at this point in the history
fix(UI): Update the percent number view so it is actually percent
  • Loading branch information
schenedx authored Nov 30, 2018
2 parents 7a43cdc + db9f683 commit e31c670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Gradebook/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ export default class Gradebook extends React.Component {
className="btn btn-header link-style"
onClick={() => this.setNewModalState(entry, subsection)}
>
{subsection.percent}
{subsection.percent * 100}%
</button>);
return acc;
}, {});
const totals = { total: entry.percent * 100 };
const totals = { total: `${entry.percent * 100}%` };
return Object.assign(results, assignments, totals);
}),

Expand All @@ -195,7 +195,7 @@ export default class Gradebook extends React.Component {
return acc;
}, {});

const totals = { total: entry.percent * 100 };
const totals = { total: `${entry.percent * 100}/100` };
return Object.assign(results, assignments, totals);
}),
};
Expand Down

0 comments on commit e31c670

Please sign in to comment.