Răsfoiți Sursa

Bug fix: transactions strand was only showing transactions from last 7 days.

Lee Morgan 5 ani în urmă
părinte
comite
505b781df5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      views/dashboardPage/js/strands/transactions.js

+ 1 - 1
views/dashboardPage/js/strands/transactions.js

@@ -6,7 +6,7 @@ let transactions = {
         document.getElementById("newTransactionButton").onclick = ()=>{controller.openSidebar("newTransaction")};
         document.getElementById("newTransactionButton").onclick = ()=>{controller.openSidebar("newTransaction")};
         if(this.transactions.length === 0){
         if(this.transactions.length === 0){
             let from = new Date();
             let from = new Date();
-            from.setDate(from.getDate() - 7);
+            from.setDate(from.getDate() - 30);
             from.setHours(0, 0, 0, 0);
             from.setHours(0, 0, 0, 0);
 
 
             this.transactions = merchant.getTransactions(from, new Date());
             this.transactions = merchant.getTransactions(from, new Date());