@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.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10422,7 +10422,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10422
10422
|
console.log("[determineMentorToRedirectTo] starredMentors ", starredMentors);
|
|
10423
10423
|
if (starredMentors && starredMentors.length > 0) {
|
|
10424
10424
|
const starredMentor = starredMentors[0];
|
|
10425
|
-
|
|
10425
|
+
// @ts-expect-error - mentor is not part of the starred mentor object
|
|
10426
|
+
if ((starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.unique_id) || (starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.mentor)) {
|
|
10426
10427
|
return starredMentor;
|
|
10427
10428
|
}
|
|
10428
10429
|
}
|