From 107f7da9393a786773bc83a98c500cd29d7493f3 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sat, 2 Nov 2024 22:28:47 +0100 Subject: [PATCH] fixed linting --- src/Components/Profile/ProfileView.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Components/Profile/ProfileView.tsx b/src/Components/Profile/ProfileView.tsx index 04c96bfa..ffe725a7 100644 --- a/src/Components/Profile/ProfileView.tsx +++ b/src/Components/Profile/ProfileView.tsx @@ -24,7 +24,7 @@ export function ProfileView ({ userType, attestationApi }: { userType: string, a const [offers, setOffers] = useState>([]) const [needs, setNeeds] = useState>([]) const [loading, setLoading] = useState(false) - const [template , setTemplate] = useState('') + const [template, setTemplate] = useState('') const location = useLocation() const items = useItems() @@ -134,10 +134,9 @@ export function ProfileView ({ userType, attestationApi }: { userType: string, a // eslint-disable-next-line react-hooks/exhaustive-deps }, [selectPosition]) - useEffect(() => { - setTemplate(item?.layer?.itemType.template || userType); -}, [userType, item]) + setTemplate(item?.layer?.itemType.template || userType) + }, [userType, item]) return ( <>