Skip to content

Commit

Permalink
fix(UI): Update the percent number view so it is actually percent wit…
Browse files Browse the repository at this point in the history
…h symbols
  • Loading branch information
schenedx committed Nov 30, 2018
1 parent 7a43cdc commit db9f683
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 db9f683

Please sign in to comment.