From f6ee12065f22bc968d281255841479e50daeeaab Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 27 May 2020 12:44:43 +0700 Subject: [PATCH] fix #1206: install uninstall button --- .../components/pages/client-app-detail/client-app-detail.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/marketplace/src/components/pages/client-app-detail/client-app-detail.tsx b/packages/marketplace/src/components/pages/client-app-detail/client-app-detail.tsx index a39aa1c6fc..31dd550a6d 100644 --- a/packages/marketplace/src/components/pages/client-app-detail/client-app-detail.tsx +++ b/packages/marketplace/src/components/pages/client-app-detail/client-app-detail.tsx @@ -92,6 +92,8 @@ const ClientAppDetail: React.FC = () => { const isLoadingAppDetail = useSelector(selectAppDetailLoading) const loginType = useSelector(selectLoginType) const isAdmin = useSelector(selectIsAdmin) + console.log(isAdmin) + const isInstallBtnHidden = loginType === 'CLIENT' && !isAdmin // selector selectAppDetailData return {} if not data const unfetched = Object.keys(appDetailData).length === 0