fix: fixes wrong avatar rendered for the modifiedBy user in request list (#1028)

This fixes an issue where when the request is modified it was showing the avatar of the requester
instead of the modifiedBy user

fix #1017
This commit is contained in:
Fallenbagel
2024-10-18 06:28:42 +08:00
committed by GitHub
parent 26c37ec067
commit cbb1a74526

View File

@@ -635,7 +635,7 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
<span className="avatar-sm ml-1.5">
<CachedImage
type="avatar"
src={requestData.requestedBy.avatar}
src={requestData.modifiedBy.avatar}
alt=""
className="avatar-sm object-cover"
width={20}