andre 4 лет назад
Родитель
Сommit
445d7b6998
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      js/scripts.js

+ 2 - 2
js/scripts.js

@@ -3820,7 +3820,7 @@ function updateProductTotalMessage(billingcycle) {
     switch(billingcycle) {
         case 'monthly':
             console.log(billingcycle);
-            let days = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            days = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
             console.log(days);
             jQuery('#producttotalmessage').html('Monatlich');
             break;
@@ -3834,7 +3834,7 @@ function updateProductTotalMessage(billingcycle) {
             break;
         case 'annually':
             console.log(billingcycle);
-            let days = daysIntoYear(new Date(now.getFullYear() + 1, 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            days = daysIntoYear(new Date(now.getFullYear() + 1, 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
             jQuery('#producttotalmessage').html('Jährlich');
             break;
     }