Skip to content

Commit

Permalink
fix #1206: install uninstall button
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined committed May 27, 2020
1 parent ce6ef75 commit f6ee120
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ const ClientAppDetail: React.FC<ClientAppDetailProps> = () => {
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
Expand Down

0 comments on commit f6ee120

Please sign in to comment.