Use scratchteam instead of is_staff

This commit is contained in:
Paul Kaplan 2018-10-18 13:09:08 -04:00 committed by GitHub
parent c257379846
commit 61947f2390
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ class Comment extends React.Component {
className="username"
href={`/users/${author.username}`}
>
{author.username}{author.is_staff ? '*' : ''}
{author.username}{author.scratchteam ? '*' : ''}
</a>
<div className="action-list">
{visible ? (
@ -216,7 +216,7 @@ Comment.propTypes = {
author: PropTypes.shape({
id: PropTypes.number,
image: PropTypes.string,
is_staff: PropTypes.bool,
scratchteam: PropTypes.bool,
username: PropTypes.string
}),
canDelete: PropTypes.bool,