File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
client/modules/User/components Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,9 @@ class Collection extends React.Component {
124
124
}
125
125
126
126
getTitle ( ) {
127
- const title = this . props . t ( 'Common.SiteName' ) ;
128
- const collectionTitle = title . concat ( ' | ' ) ;
129
- return collectionTitle ;
130
- }
131
-
132
- getCollectionOwner ( ) {
127
+ if ( this . hasCollection ( ) ) {
128
+ return `${ this . props . t ( 'Common.SiteName' ) } | ${ this . getCollectionName ( ) } ` ;
129
+ }
133
130
if ( this . props . username === this . props . user . username ) {
134
131
return this . props . t ( 'Collection.Title' ) ;
135
132
}
@@ -248,9 +245,6 @@ class Collection extends React.Component {
248
245
}
249
246
250
247
render ( ) {
251
- const title = this . hasCollection ( )
252
- ? this . getCollectionName ( )
253
- : this . getCollectionOwner ( ) ;
254
248
const isOwner = this . isOwner ( ) ;
255
249
256
250
return (
@@ -260,7 +254,7 @@ class Collection extends React.Component {
260
254
>
261
255
< article className = "collection" >
262
256
< Helmet >
263
- < title > { this . getTitle ( ) + title } </ title >
257
+ < title > { this . getTitle ( ) } </ title >
264
258
</ Helmet >
265
259
{ this . _renderLoader ( ) }
266
260
< CollectionMetadata collectionId = { this . props . collectionId } />
You can’t perform that action at this time.
0 commit comments