Explorar o código

Bug fix: weight not displaying if less than 0.

Lee Morgan hai 1 ano
pai
achega
e66efe3523
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. 0 0
      build.html
  2. 1 1
      views/js/pages/session.js

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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));

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio