From 504962b47b5e967b829d71bb0c8c10a3fec96c71 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 26 Aug 2021 22:48:56 -0700 Subject: [PATCH] ProfileInfoPanel: fix join date --- .../ui/components/profile_info_panel.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/soapbox/features/ui/components/profile_info_panel.js b/app/soapbox/features/ui/components/profile_info_panel.js index 4b5559bfd..219925ca1 100644 --- a/app/soapbox/features/ui/components/profile_info_panel.js +++ b/app/soapbox/features/ui/components/profile_info_panel.js @@ -10,7 +10,7 @@ import Icon from 'soapbox/components/icon'; import VerificationBadge from 'soapbox/components/verification_badge'; import Badge from 'soapbox/components/badge'; import { List as ImmutableList } from 'immutable'; -import { getAcct, isAdmin, isModerator } from 'soapbox/utils/accounts'; +import { getAcct, isAdmin, isModerator, isLocal } from 'soapbox/utils/accounts'; import { displayFqn } from 'soapbox/utils/state'; import classNames from 'classnames'; import CryptoAddress from 'soapbox/features/crypto_donate/components/crypto_address'; @@ -100,16 +100,17 @@ class ProfileInfoPanel extends ImmutablePureComponent {
{this.getStaffBadge()} {account.getIn(['patron', 'is_patron']) && } - {account.get('acct').includes('@') ||
- - -
}
+ {isLocal(account) &&
+ + +
} +