Skip to content

Commit edeed75

Browse files
authored
Merge pull request #4028 from QuantiModo/feature/round
round
2 parents fd69de2 + 8fcc9e0 commit edeed75

File tree

5 files changed

+1
-61
lines changed

5 files changed

+1
-61
lines changed

.idea/runConfigurations/GI_Test.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.idea/runConfigurations/GI_Test_API_Suite.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.idea/runConfigurations/GI_Test_Ionic_Suite.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.idea/runConfigurations/ionic_pull.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/js/qmHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4388,10 +4388,10 @@ var qm = {
43884388
qm.qmLog.errorAndExceptionTestingOrDevelopment("Could not get unit for this measurement: ", m)
43894389
} else {
43904390
if(!m.unitAbbreviatedName){m.unitAbbreviatedName = unit.abbreviatedName;}
4391+
if(unit.abbreviatedName === '/5'){m.roundedValue = Math.round(m.value);}
43914392
}
43924393
if(!m.variableName){m.variableName = m.variable;}
43934394
if(m.variableName === qm.getPrimaryOutcomeVariable().name){m.valence = qm.getPrimaryOutcomeVariable().valence;}
4394-
if(unit.abbreviatedName === '/5'){m.roundedValue = Math.round(m.value);}
43954395
m.displayValueAndUnitString = m.displayValueAndUnitString || m.value + " " + unit.abbreviatedName;
43964396
m.displayValueAndUnitString = qm.stringHelper.formatValueUnitDisplayText(m.displayValueAndUnitString)
43974397
m.valueUnitVariableName = m.displayValueAndUnitString + " " + m.variableName;

0 commit comments

Comments
 (0)