From 67759602410903ff5d712d08f3662f2cc7d1cff9 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 9 Aug 2021 13:26:10 +1200 Subject: [PATCH] Hide Private brew `
` if UserPage is not for logged in User --- client/homebrew/pages/userPage/userPage.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/homebrew/pages/userPage/userPage.jsx b/client/homebrew/pages/userPage/userPage.jsx index 28e0a17c9..f5e787a1d 100644 --- a/client/homebrew/pages/userPage/userPage.jsx +++ b/client/homebrew/pages/userPage/userPage.jsx @@ -145,10 +145,12 @@ const UserPage = createClass({

{this.getUsernameWithS()} brews

{this.renderBrews(brews.published)}
-
-

{this.getUsernameWithS()} unpublished brews

- {this.renderBrews(brews.private)} -
+ {this.props?.username == global.account?.username && +
+

{this.getUsernameWithS()} unpublished brews

+ {this.renderBrews(brews.private)} +
+ } ;