Tweaked a link
This commit is contained in:
@@ -173,7 +173,7 @@ class Profile extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div className='sidePanel'>
|
<div className='sidePanel'>
|
||||||
<p>Return <Link to='/'>home</Link></p>
|
<p>Return <Link to='/'>home</Link></p>
|
||||||
<p>Go to <Link to='/profile' onClick={(e) => { e.preventDefault(); this.requestProfileData(this.props.username); }}>your profile</Link></p>
|
<p>Go to <Link to='/profile' onClick={(e) => { e.preventDefault(); this.requestProfileData(this.props.username); this.props.history.push('/profile'); }}>your profile</Link></p>
|
||||||
<Logout />
|
<Logout />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user