diff --git a/src/Components/Profile/Templates/TabsView.tsx b/src/Components/Profile/Templates/TabsView.tsx index c2bdcb93..31878833 100644 --- a/src/Components/Profile/Templates/TabsView.tsx +++ b/src/Components/Profile/Templates/TabsView.tsx @@ -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 = ({