Quellcode durchsuchen

Vitals - bmi logic update

Vijayakrishnan vor 4 Jahren
Ursprung
Commit
b2bc443ca0

+ 3 - 1
resources/views/app/patient/canvas-sections/vitals/form.blade.php

@@ -140,10 +140,12 @@ $formID = rand(0, 100000);
                 computed: {
                     bmi: function () {
                         let result = '';
-                        let h = this.items.heightInches.value, w = this.items.weightPounds.value;
+                        let h = this.items.heightInches, w = this.items.weightPounds;
                         if(!h || !w) {
                             return result;
                         }
+                        h = h.value;
+                        w = w.value;
                         try {
                             h = parseFloat(h);
                             w = parseFloat(w);