Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit b250ce3

Browse files
committed
Show something when title isn't set
1 parent f0c2163 commit b250ce3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/Detail/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ export const Detail = () => {
215215

216216
function getTitle () {
217217
if (!user.domain) return ''
218-
if (user.domain === 'login') return user.title // employee
219-
if (user.domain === 'skole' && user.title) return user.title // apprentice, OT or student
218+
if (user.domain === 'login') return user.title || 'Mangler title 😬' // employee
219+
if (user.domain === 'skole' && user.title) return user.title || 'Mangler title 😬' // apprentice, OT or student
220220
return ''
221221
}
222222

0 commit comments

Comments
 (0)