Ver código fonte

Bug fix: weight not displaying if less than 0.

Lee Morgan 1 ano atrás
pai
commit
e66efe3523
2 arquivos alterados com 1 adições e 1 exclusões
  1. 0 0
      build.html
  2. 1 1
      views/js/pages/session.js

Diferenças do arquivo suprimidas por serem muito extensas
+ 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));

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff