diff --git a/app/soapbox/components/display_name.js b/app/soapbox/components/display_name.js index 94d8d99a5..e35a1a60d 100644 --- a/app/soapbox/components/display_name.js +++ b/app/soapbox/components/display_name.js @@ -4,11 +4,11 @@ import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import VerificationBadge from './verification_badge'; import { getAcct } from '../utils/accounts'; -import { List as ImmutableList } from 'immutable'; import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper'; import Icon from './icon'; import RelativeTimestamp from './relative_timestamp'; import { displayFqn } from 'soapbox/utils/state'; +import { isVerified } from 'soapbox/utils/accounts'; const mapStateToProps = state => { return { @@ -35,7 +35,7 @@ class DisplayName extends React.PureComponent { const { account, displayFqn, others, children, withDate } = this.props; let displayName, suffix; - const verified = account.getIn(['pleroma', 'tags'], ImmutableList()).includes('verified'); + const verified = isVerified(account); const createdAt = account.get('created_at');