monkey-front-core 0.0.383 → 0.0.385

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.
@@ -3707,7 +3707,20 @@ class MonkeyEcxTokenStorageService {
3707
3707
  if (username) {
3708
3708
  data = await store.select(select({ username })).pipe(take(1)).toPromise();
3709
3709
  }
3710
- return data?.me;
3710
+ let handledData = {
3711
+ ...data
3712
+ };
3713
+ if (!handledData.me) {
3714
+ try {
3715
+ handledData = {
3716
+ me: JSON.parse(localStorage.getItem('me') || '{}')
3717
+ };
3718
+ }
3719
+ catch (e) {
3720
+ // not to do
3721
+ }
3722
+ }
3723
+ return handledData?.me;
3711
3724
  }
3712
3725
  tokenHasChanged() {
3713
3726
  return this.token$.asObservable();