fixed attestation layout

This commit is contained in:
Anton Tranelis 2025-03-04 18:03:21 +00:00
parent 5c18ed2abd
commit 40cf61225c

View File

@ -51,9 +51,7 @@ export const TabsView = ({
const items = useItems()
const appState = useAppState()
const getUserProfile = (id: string) => {
return items.find(
(i) => i.user_created?.id === id && i.layer?.itemType.name === appState.userType,
)
return items.find((i) => i.user_created?.id === id && i.layer?.userProfileLayer)
}
useEffect(() => {
@ -156,13 +154,15 @@ export const TabsView = ({
<div className='flex items-center gap-3'>
<div className='tw-avatar'>
<div className='tw-mask tw-rounded-full h-8 w-8 tw-mr-2'>
<img
src={
appState.assetsApi.url +
getUserProfile(a.user_created.id)?.image
}
alt='Avatar'
/>
{getUserProfile(a.user_created.id)?.image && (
<img
src={
appState.assetsApi.url +
getUserProfile(a.user_created.id)?.image
}
alt='Avatar'
/>
)}
</div>
</div>
<div>