Skip to content

Commit

Permalink
(Fix): Frontend bottom char was displaying arbitrary unit
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneTR committed Jan 25, 2025
1 parent 46a2872 commit a27694e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/js/helpers/phase-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ const buildTotalChartData = (phase_stats_object) => {
// we loop over all keys that exist, not over the one that are present in detail_data['data']
phase_stats_object.comparison_identifiers.forEach((key,key_index) => {
const [transformed_total_chart_bottom_mean, transformed_unit] = convertValue(detail_data['data'][key]?.mean, metric_data.unit)
transformed_total_chart_bottom_unit = transformed_unit;

if (total_chart_bottom_condition(metric_name) && `${metric_name} ${detail_name}` == found_bottom_chart_metric) {
transformed_total_chart_bottom_unit = transformed_unit;
if(total_chart_bottom_data?.[`${TOTAL_CHART_BOTTOM_LABEL} - ${key}`] == null) {
total_chart_bottom_data[`${TOTAL_CHART_BOTTOM_LABEL} - ${key}`] = []
}
Expand Down

0 comments on commit a27694e

Please sign in to comment.