geer-builder 1.2.709 → 1.2.710

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.
@@ -301,7 +301,14 @@ export default
301
301
  {
302
302
  if(user_tree_details.docs.length > 0)
303
303
  {
304
- this.period_pv = user_tree_details.docs[0].data()[this.activated_period[0].id].pv_earned;
304
+ if(user_tree_details.docs[0].data()[this.activated_period[0].id])
305
+ {
306
+ this.period_pv = user_tree_details.docs[0].data()[this.activated_period[0].id].pv_earned;
307
+ }
308
+ else
309
+ {
310
+ this.period_pv = 0;
311
+ }
305
312
  }
306
313
  else
307
314
  {
package/GSlotChange.vue CHANGED
@@ -57,6 +57,7 @@ export default
57
57
  {
58
58
  if(this.user_info)
59
59
  {
60
+ this._slot_list = [];
60
61
  this.main_currency = await new DB_SETTINGS().doc('public_settings').get();
61
62
  this.slot_display_counter = this.main_currency.data().value.hasOwnProperty("slot_display_counter") ? this.main_currency.data().value.slot_display_counter : false;
62
63
  this.loadSlotOwned();
@@ -96,19 +97,26 @@ export default
96
97
  {
97
98
  if(this.slot_display_counter)
98
99
  {
99
- await this.$bind('_slot_list', this.db_slot.collection().where('owner', '==', this.user_info.uid).orderBy('created_date', 'desc'));
100
- let ctr = 1;
101
- this._slot_list.forEach((d, i) =>
100
+ if(this._slot_list)
102
101
  {
103
- this._slot_list[i].temp_ctr = ctr;
104
- ctr++;
105
- });
102
+ await this.$bind('_slot_list', this.db_slot.collection().where('owner', '==', this.user_info.uid).orderBy('created_date', 'desc'));
103
+ if(this._slot_list.length >= 1)
104
+ {
105
+ let ctr = 1;
106
+ this._slot_list.forEach((d, i) =>
107
+ {
108
+ this._slot_list[i].temp_ctr = ctr;
109
+ ctr++;
110
+ });
111
+ }
112
+ }
106
113
  }
107
114
  else
108
115
  {
109
116
  await this.$bind('_slot_list', this.db_slot.collection().where('owner', '==', this.user_info.uid).orderBy('wallet', 'desc'));
110
117
  }
111
118
  }
119
+
112
120
  if(this._slot_list.length == 1 && !this.user_info.active_slot)
113
121
  {
114
122
  this.chooseSlot(this._slot_list[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.709",
3
+ "version": "1.2.710",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {