fix request access notif page
This commit is contained in:
parent
f35cea5ba6
commit
037575409d
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class NotificationPage extends Component {
|
|||
const request = notification.data.object
|
||||
const map = notification.data.map
|
||||
const subject = notification.type === MAP_ACCESS_REQUEST ?
|
||||
(<span><span style={{ fontWeight: 'bold' }} className='requesterName'>{request.user.name}</span> wants to collaborate on map <span style={{fontWeight: 'bold'}}>{ map.name }</span></span>)
|
||||
(<span><span style={{ fontWeight: 'bold' }} className='requesterName'>{notification.actor.name}</span> wants to collaborate on map <span style={{fontWeight: 'bold'}}>{ map.name }</span></span>)
|
||||
: notification.subject
|
||||
return (
|
||||
<div>
|
||||
|
@ -62,7 +62,7 @@ class NotificationPage extends Component {
|
|||
</p>
|
||||
<Link to={`/maps/${map.id}`}>Go to map</Link>
|
||||
|
||||
<Link to={`/explore/mapper/${request.user.id}`}>View mapper profile</Link>
|
||||
<Link to={`/explore/mapper/${notification.actor.id}`}>View mapper profile</Link>
|
||||
</div>}
|
||||
{notification.type !== MAP_ACCESS_REQUEST && <NotificationBody notification={notification} />}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue