Parcourir la source

Bug fix: weight not displaying if less than 0.

Lee Morgan il y a 1 an
Parent
commit
e66efe3523
2 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 0 0
      build.html
  2. 1 1
      views/js/pages/session.js

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
build.html


+ 1 - 1
views/js/pages/session.js

@@ -208,7 +208,7 @@ export default {
         });
 
         const weightInput = setElem.querySelector(".weightSetWeight");
-        if(set.weight > 0) weightInput.value = set.weight;
+        if(set.weight !== 0) weightInput.value = set.weight;
         weightInput.addEventListener("input", ()=>{
             set.weight = weightInput.value
             localStorage.setItem(this.currentSession.workout, JSON.stringify(this.currentSession));

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff