Преглед изворни кода

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

Lee Morgan пре 5 година
родитељ
комит
505b781df5
1 измењених фајлова са 1 додато и 1 уклоњено
  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")};
         if(this.transactions.length === 0){
             let from = new Date();
-            from.setDate(from.getDate() - 7);
+            from.setDate(from.getDate() - 30);
             from.setHours(0, 0, 0, 0);
 
             this.transactions = merchant.getTransactions(from, new Date());