From 090b9fa4260cb9fa9884007376f3b929cc054527 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 27 Apr 2020 15:07:24 -0500 Subject: [PATCH] Fix staff profile badges --- app/gabsocial/features/ui/components/profile_info_panel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/gabsocial/features/ui/components/profile_info_panel.js b/app/gabsocial/features/ui/components/profile_info_panel.js index ff2ff454d..00554f93a 100644 --- a/app/gabsocial/features/ui/components/profile_info_panel.js +++ b/app/gabsocial/features/ui/components/profile_info_panel.js @@ -13,7 +13,7 @@ import ProBadge from 'gabsocial/components/pro_badge'; import DonorBadge from 'gabsocial/components/donor_badge'; import InvestorBadge from 'gabsocial/components/investor_badge'; import { List as ImmutableList } from 'immutable'; -import { acctFull } from 'gabsocial/utils/accounts'; +import { acctFull, isAdmin, isModerator } from 'gabsocial/utils/accounts'; const messages = defineMessages({ linkVerifiedOn: { id: 'account.link_verified_on', defaultMessage: 'Ownership of this link was checked on {date}' }, @@ -77,8 +77,8 @@ class ProfileInfoPanel extends ImmutablePureComponent {
- {account.get('is_admin') && } - {account.get('is_moderator') && } + {isAdmin(account) && } + {isModerator(account) && } {account.get('is_pro') && } {account.get('is_donor') && } {account.get('is_investor') && }