@iblai/web-utils 1.11.6 → 1.11.7

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.
package/dist/index.js CHANGED
@@ -10442,7 +10442,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
10442
10442
  console.log("[determineMentorToRedirectTo] starredMentors ", starredMentors);
10443
10443
  if (starredMentors && starredMentors.length > 0) {
10444
10444
  const starredMentor = starredMentors[0];
10445
- if (starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.unique_id) {
10445
+ // @ts-expect-error - mentor is not part of the starred mentor object
10446
+ if ((starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.unique_id) || (starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.mentor)) {
10446
10447
  return starredMentor;
10447
10448
  }
10448
10449
  }