Skip to content

Commit

Permalink
fix: hide if cant edit avatar list
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Nov 9, 2024
1 parent 56324c9 commit d5c1b10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/ui/AvatarList/AvatarList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export const AvatarList = ({ imageDtoList = [], setFiles, onClickRemove, maxFile
size={72}
src={url}
actionSlot={
<Close onClick={() => onClickRemove?.(url, isNaN(Number(imageId)) ? Number(imageId) : undefined)} />
onClickRemove && (
<Close onClick={() => onClickRemove?.(url, isNaN(Number(imageId)) ? Number(imageId) : undefined)} />
)
}
/>
))}
Expand Down

0 comments on commit d5c1b10

Please sign in to comment.