Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Clean ups (#91)
Browse files Browse the repository at this point in the history
* fixed url from profile

* added switch for link for different user types

* fixed influencer age can't be edited
  • Loading branch information
larryworm1127 authored Dec 9, 2022
1 parent 919e126 commit f8cf2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ProfileBase from './ProfileBase'

export default function Profile (): JSX.Element {
const data = useLoaderData() as any
const influencerItems = ['ShortBio', 'Description']
const influencerItems = ['ShortBio', 'Description', 'Age']
const businessItems = ['ShortBio', 'Location', 'Industry', 'Description']

return data.user.isInfluencer ? <ProfileBase items={influencerItems}/> : <ProfileBase items={businessItems}/>
Expand Down

0 comments on commit f8cf2b8

Please sign in to comment.