Commit 28e94f13 authored by Kenneth Zhao's avatar Kenneth Zhao

Fix a bug with invalid URL (accound id is Nan) when click on

the status head.
parent b536bd75
Pipeline #8244 passed with stage
in 3 minutes and 52 seconds
......@@ -19,7 +19,7 @@ export default class StatusHeader extends React.PureComponent {
// Handles clicks on account name/image
handleAccountClick = (e) => {
const { status, parseClick } = this.props;
parseClick(e, `/accounts/${+status.getIn(['account', 'id'])}`);
parseClick(e, `/accounts/${status.getIn(['account', 'id'])}`);
}
// Rendering.
......
......@@ -15,7 +15,7 @@ export default class StatusPrepend extends React.PureComponent {
handleClick = (e) => {
const { account, parseClick } = this.props;
parseClick(e, `/accounts/${+account.get('id')}`);
parseClick(e, `/accounts/${account.get('id')}`);
}
Message = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment