From 8c0ca988ae9d897ea2cb72bf08735480c5a344ca Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sat, 17 Jun 2023 19:50:05 +1200 Subject: [PATCH] Trim brew.title on UserPage --- client/homebrew/pages/userPage/userPage.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/homebrew/pages/userPage/userPage.jsx b/client/homebrew/pages/userPage/userPage.jsx index 1e051987b..57fc5f457 100644 --- a/client/homebrew/pages/userPage/userPage.jsx +++ b/client/homebrew/pages/userPage/userPage.jsx @@ -28,6 +28,7 @@ const UserPage = createClass({ const usernameWithS = this.props.username + (this.props.username.endsWith('s') ? `’` : `’s`); const brews = _.groupBy(this.props.brews, (brew)=>{ + brew.title = brew.title.trim(); return (brew.published ? 'published' : 'private'); });