mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 03:22:38 +00:00
Trim brew.title on UserPage
This commit is contained in:
@@ -28,6 +28,7 @@ const UserPage = createClass({
|
|||||||
const usernameWithS = this.props.username + (this.props.username.endsWith('s') ? `’` : `’s`);
|
const usernameWithS = this.props.username + (this.props.username.endsWith('s') ? `’` : `’s`);
|
||||||
|
|
||||||
const brews = _.groupBy(this.props.brews, (brew)=>{
|
const brews = _.groupBy(this.props.brews, (brew)=>{
|
||||||
|
brew.title = brew.title.trim();
|
||||||
return (brew.published ? 'published' : 'private');
|
return (brew.published ? 'published' : 'private');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user