Sfoglia il codice sorgente

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

Lee Morgan 5 anni fa
parent
commit
505b781df5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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());