fix ts error

This commit is contained in:
Andreani Jean
2023-07-03 22:43:58 +02:00
parent 972615bd12
commit d71c0ee835

View File

@@ -124,10 +124,13 @@ const ariaLabel = computed((): string =>
: t('general.header.burger_menu_aria_label_closed')
)
const logoutUrl = computed((): string => getAuthRoute('/auth/logout', '/'))
const userName = computed((): string => {
const firstLetter = cookies.get('user_name').match(/\b(\w)/g)
return firstLetter.join('').toUpperCase()
})
const userName = computed((): string =>
cookies
.get('user_name')
.match(/\b(\w)/g)!
.join('')
.toUpperCase()
)
</script>
<style lang="scss" scoped>