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
|
-
|
|
211
|
-
|
|
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
|