Skip to content

Commit

Permalink
fix: Minor fixes related to MQ BETA methodology
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Nov 6, 2023
1 parent 0482c51 commit 5669b24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/javascript/components/tpi/MqBetaModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const MqBetaModal = ({ enabled, page }) => {
>
<div className="icon__close" />
</button>
<div className="modal-title">Management Quality (MQ) methodology</div>
<div className="modal-title">Management Quality methodology</div>
<div className="content">
<p>
The TPI Centre has developed an update to its Management Quality
Expand Down
4 changes: 2 additions & 2 deletions app/services/api/charts/mq_assessment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def assessments_levels_data
[
{
name: 'Level',
data: results
data: results + [[results.last.first, 5]]
},
{
name: 'Current Level',
data: [[assessment.assessment_date.to_s, assessment.level.to_i]]
},
{
name: 'Max Level',
data: assessment.beta_methodology? ? assessment.beta_levels.last.to_i : 4
data: @enable_beta_mq_assessments ? MQ::Assessment::BETA_METHODOLOGIES.keys.max : 4
}
]
end
Expand Down
Binary file not shown.

0 comments on commit 5669b24

Please sign in to comment.