0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-10 11:22:40 +00:00
[UserPage] Change apostrophe in `usernameWithS`
This commit is contained in:
Trevor Buckner
2022-09-03 23:12:13 -04:00
committed by GitHub

View File

@@ -23,7 +23,7 @@ const UserPage = createClass({
}; };
}, },
getInitialState : function() { getInitialState : function() {
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)=>{
return (brew.published ? 'published' : 'private'); return (brew.published ? 'published' : 'private');