Skip to content

Commit

Permalink
Merge pull request #875 from BinaryStudioAcademy/fix/bt-819-fix-open-…
Browse files Browse the repository at this point in the history
…page

bt-819: fix open page
  • Loading branch information
nikita-remeslov authored Sep 30, 2023
2 parents 8aa1ee9 + 9f24931 commit d837f91
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ const CandidateProfile: React.FC<Properties> = ({
const userId = currentUser?.id;

useEffect(() => {
if ((!userId || isProfileCard) ?? isCandidatePage) {
if (!userId || isProfileCard) {
return;
}

void dispatch(lmsActions.getTalentLmsData({ userId }));

if (!isFifthStep && currentUser.role == UserRole.EMPLOYER) {
void dispatch(
hiringInfoActions.getHiringInfo({
Expand Down

0 comments on commit d837f91

Please sign in to comment.