Tweaked a link

This commit is contained in:
2019-05-10 13:18:16 +10:00
parent 31a59f56ba
commit b6aa2cfc6e
+1 -1
View File
@@ -173,7 +173,7 @@ class Profile extends React.Component {
return (
<div className='sidePanel'>
<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 />
</div>
);