Skip to content

Commit

Permalink
restore setTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
antontranelis committed Nov 2, 2024
1 parent 3dc5336 commit 997c31c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Components/Profile/ProfileView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function ProfileView ({ userType, attestationApi }: { userType: string, a
const [offers, setOffers] = useState<Array<Tag>>([])
const [needs, setNeeds] = useState<Array<Tag>>([])
const [loading, setLoading] = useState<boolean>(false)
const [template/* , setTemplate */] = useState<string>('')
const [template , setTemplate] = useState<string>('')

Check failure on line 27 in src/Components/Profile/ProfileView.tsx

View workflow job for this annotation

GitHub Actions / Lint

There should be no space before ','

const location = useLocation()
const items = useItems()
Expand Down Expand Up @@ -134,6 +134,11 @@ export function ProfileView ({ userType, attestationApi }: { userType: string, a
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectPosition])


Check failure on line 137 in src/Components/Profile/ProfileView.tsx

View workflow job for this annotation

GitHub Actions / Lint

More than 1 blank line not allowed
useEffect(() => {
setTemplate(item?.layer?.itemType.template || userType);

Check failure on line 139 in src/Components/Profile/ProfileView.tsx

View workflow job for this annotation

GitHub Actions / Lint

Extra semicolon
}, [userType, item])

Check failure on line 140 in src/Components/Profile/ProfileView.tsx

View workflow job for this annotation

GitHub Actions / Lint

Expected indentation of 2 spaces but found 0

return (
<>
{item &&
Expand Down

0 comments on commit 997c31c

Please sign in to comment.