Browse Source

Bug fix: getting merchant revenue was returning too small a number.

Lee Morgan 5 năm trước cách đây
mục cha
commit
2845c5a683

+ 0 - 1
controllers/renderer.js

@@ -112,7 +112,6 @@ module.exports = {
                 return res.render("dashboardPage/dashboard", {merchant: res.locals.merchant, transactions: transactions});
             })
             .catch((err)=>{
-                console.log(err);
                 req.session.error = "ERROR: UNABLE TO RETRIEVE DATA";
                 return res.redirect("/");
             });

+ 1 - 1
views/dashboardPage/bundle.js

@@ -552,7 +552,7 @@ class Merchant{
             }
         }
 
-        return total / 100;
+        return total;
     }
 
     /*

+ 1 - 1
views/dashboardPage/js/classes/Merchant.js

@@ -436,7 +436,7 @@ class Merchant{
             }
         }
 
-        return total / 100;
+        return total;
     }
 
     /*