geer-builder 1.2.521 → 1.2.522

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,6 +76,11 @@ export default
76
76
  let days_passed = 0;
77
77
  do
78
78
  {
79
+ days_left = days_left - this.investment_details.investment_interval;
80
+ if(days_left < 0)
81
+ {
82
+ break;
83
+ }
79
84
  days_passed = days_passed + this.investment_details.investment_interval;
80
85
  this.investment_preview[ctr] = {}
81
86
  this.investment_preview[ctr].start_date = start_date;
@@ -83,7 +88,6 @@ export default
83
88
  this.investment_preview[ctr].projection = this.investment_details.investment_rate;
84
89
  this.investment_preview[ctr].projected_income = this.investment_details.entered_amount * (this.investment_preview[ctr].projection / 100);
85
90
  ctr++;
86
- days_left = days_left - this.investment_details.investment_interval;
87
91
  }
88
92
  while(days_left > 0)
89
93
  this.table_loading = true;
@@ -145,6 +145,11 @@ export default
145
145
  let days_passed = 0;
146
146
  do
147
147
  {
148
+ days_left = days_left - this.plan.investment_interval;
149
+ if(days_left < 0)
150
+ {
151
+ break;
152
+ }
148
153
  days_passed = days_passed + this.plan.investment_interval;
149
154
  this.investment_preview[ctr] = {}
150
155
  this.investment_preview[ctr].start_date = start_date;
@@ -152,7 +157,6 @@ export default
152
157
  this.investment_preview[ctr].projection = this.plan.investment_rate;
153
158
  this.investment_preview[ctr].projected_income = this.investment_amount * (this.investment_preview[ctr].projection / 100);
154
159
  ctr++;
155
- days_left = days_left - this.plan.investment_interval;
156
160
  }
157
161
  while(days_left > 0)
158
162
  }
@@ -280,6 +280,11 @@ export default
280
280
  let days_passed = 0;
281
281
  do
282
282
  {
283
+ days_left = days_left - this.chosen_plan.income_interval;
284
+ if(days_left < 0)
285
+ {
286
+ break;
287
+ }
283
288
  days_passed = days_passed + this.chosen_plan.income_interval;
284
289
  this.investment_preview[ctr] = {}
285
290
  this.investment_preview[ctr].start_date = start_date;
@@ -289,11 +294,8 @@ export default
289
294
  this.investment_preview[ctr].projection = Math.floor(Math.random() * (this.chosen_plan.max_income_percentage - this.chosen_plan.min_income_percentage + 1)) + this.chosen_plan.min_income_percentage;
290
295
  this.investment_preview[ctr].projected_income = this.investment_amount * (this.investment_preview[ctr].projection / 100);
291
296
  ctr++;
292
- days_left = days_left - this.chosen_plan.income_interval;
293
297
  }
294
298
  while(days_left > 0)
295
-
296
-
297
299
  }
298
300
 
299
301
  this.submit_loading = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.521",
3
+ "version": "1.2.522",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {