diff --git a/src/components/header/index.js b/src/components/header/index.js index 0f89717..49a3aa6 100644 --- a/src/components/header/index.js +++ b/src/components/header/index.js @@ -61,7 +61,9 @@ const Header = () => {
{name}
- {user.specialism}, {user.cohort.title} + {user?.cohort?.title + ? `${user.specialism}, ${user.cohort.title}` + : user.specialism}{u.cohort.title ? u.cohort.title : 'Software Developer, Cohort 69'}
++ {u.cohort?.title + ? `${u.specialism}, ${u.cohort?.title}` + : `${u.specialism}`} +
{u.cohort.title ? u.cohort.title : 'Software Developer, Cohort 69'}
++ {u.cohort?.title + ? `${u.specialism}, ${u.cohort?.title}` + : `${u.specialism}`} +