Trim brew.title on UserPage

This commit is contained in:
G.Ambatte
2023-06-17 19:50:05 +12:00
parent 9202f9c8eb
commit 8c0ca988ae
@@ -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');
}); });