mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: prevent greetings with "undefined" name
This commit is contained in:
parent
e9fdc02485
commit
922bb04803
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ const greetings = [
|
|||
'How have you been, %s?'
|
||||
]
|
||||
|
||||
const greeting = computed(() => sample(greetings)!.replace('%s', userStore.current?.name))
|
||||
const greeting = computed(() => userStore.current ? sample(greetings)!.replace('%s', userStore.current.name) : '')
|
||||
const libraryEmpty = computed(() => commonStore.state.song_length === 0)
|
||||
|
||||
const loading = ref(false)
|
||||
|
|
Loading…
Reference in a new issue