Skip to content

Commit

Permalink
Merge pull request bradtraversy#30 from developerkunal/patch-3
Browse files Browse the repository at this point in the history
Update CreateProfile.js
  • Loading branch information
bradtraversy authored Jul 23, 2019
2 parents 108905e + 765b07f commit 7a3d9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/profile-forms/CreateProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const Createprofile = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [getCurrentProfile]);
return loading && profile === null ? (
<Redirect to='/dashboard' />
) : (
<Fragment>
<h1 className='large text-primary'>Create Your Profile</h1>
<p className='lead'>
Expand Down Expand Up @@ -220,8 +222,6 @@ const Createprofile = ({
</Link>
</form>
</Fragment>
) : (
<Redirect to='/dashboard' />
);
};

Expand Down

0 comments on commit 7a3d9d1

Please sign in to comment.