Skip to content

Commit

Permalink
Merge pull request #83 from team-capstone-1/dev
Browse files Browse the repository at this point in the history
(083) feat (forum) : Add anonymous image for anonimous author on forum
  • Loading branch information
amorazl authored Dec 18, 2023
2 parents cdee2c1 + 08c9d6b commit f28e83e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/app-views/forum/components/NotAnsweredYet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function NotAnsweredYet() {
src={
data.anonymous
? anonymousPict
: data.patient.profile_image
: data.patient.profile_image || anonymousPict
}
alt="patient profile"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/views/app-views/forum/misc/DiscussionDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function DiscussionDetail() {
src={
data[0]?.anonymous
? anonymousPict
: data[0]?.patient?.profile_image
: data[0]?.patient?.profile_image || anonymousPict
}
alt="patient profile"
/>
Expand Down

0 comments on commit f28e83e

Please sign in to comment.