bulltrackers-module 1.0.730 → 1.0.731

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.
@@ -207,8 +207,9 @@ class StandardExecutor {
207
207
 
208
208
  let social = null;
209
209
  if (globalRoots.social) {
210
- social = (actualType === 'POPULAR_INVESTOR' ? globalRoots.social.pi[userId] :
211
- (actualType === 'SIGNED_IN_USER' ? globalRoots.social.signedIn[userId] : globalRoots.social.generic)) || {};
210
+ // Use optional chaining to handle missing sub-objects (pi, signedIn, generic)
211
+ social = (actualType === 'POPULAR_INVESTOR' ? globalRoots.social.pi?.[userId] :
212
+ (actualType === 'SIGNED_IN_USER' ? globalRoots.social.signedIn?.[userId] : globalRoots.social.generic)) || {};
212
213
  }
213
214
 
214
215
  // 4. Build Context
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.730",
3
+ "version": "1.0.731",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [