Skip to content

Commit 8ea992a

Browse files
committed
prep-118 fix non direct urls
1 parent ad3ef17 commit 8ea992a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/components/publisherPage/publisherPage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export default class PublisherPage extends React.Component {
4444
.then (()=>this.setState({publisherName:message[ message.findIndex(member => {return member.id===this.props.match.params.memberId})].name}))
4545
.catch( e =>{
4646
console.error(e)
47-
})
47+
})
4848
}
49-
49+
5050
}
5151
componentDidMount () {
5252
fetch(`${deployConfig.apiBaseUrl}?op=participation-summary&memberid=${this.props.match.params.memberId}`)
@@ -83,7 +83,7 @@ export default class PublisherPage extends React.Component {
8383

8484
<div className="rightBox">
8585
<div className="publisherTitle">
86-
{this.state.publisherName}
86+
{this.props.location.state ? this.props.location.state.publisherName :this.state.publisherName }
8787
</div>
8888

8989
<div className="publisherTotals">

0 commit comments

Comments
 (0)