Skip to content

Commit

Permalink
use start date
Browse files Browse the repository at this point in the history
  • Loading branch information
smallbrownbike committed Oct 1, 2024
1 parent f668e23 commit 71425a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Squeak/components/Replies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type ExpandedProps = {

const getComunityClasses = (reply, isResolution) => {
const profile = reply?.attributes?.profile?.data
const isTeamMember = profile?.attributes?.teams?.data?.length > 0
const isTeamMember = !!profile?.attributes?.startDate
const isAI = profile?.id === Number(process.env.GATSBY_AI_PROFILE_ID)
return `${isAI ? 'community-profile-ai' : isTeamMember ? 'community-profile-mod' : 'community-profile-member'}${
isResolution ? ' community-reply-resolution' : ''
Expand Down
2 changes: 1 addition & 1 deletion src/components/Squeak/hooks/useQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const query = (id: string | number, isModerator: boolean) =>
sort: ['createdAt:asc'],
populate: {
profile: {
fields: ['id', 'firstName', 'lastName', 'gravatarURL', 'pronouns', 'color'],
fields: ['id', 'firstName', 'lastName', 'gravatarURL', 'pronouns', 'color', 'startDate'],
populate: {
avatar: {
fields: ['id', 'url'],
Expand Down

0 comments on commit 71425a1

Please sign in to comment.