forked from Ivasoft/geovisio-website
fix ts error
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user