https://i.sstatic.net/I5ZVO.png
I've attempted adding a ? after each word and also experimented with the following code:
const totalNameLenght = computed(() => {
if (userFirstnameLenght.value && userLastnameLenght.value){
return userFirstnameLenght.value + userLastnameLenght.value
}
})
I have even considered this alternative approach:
const totalNameLenght = computed((): number | undefined => )
I'm feeling stuck and unsure of how to proceed... any suggestions on solving this issue? Thank you in advance!