One of my code snippets in vue.js looks like this:
<q-btn @click="goEditMode" color="primary" icon="edit" label="Edit"
v-if="this.form.userName.toLowerCase() !== 'admin'" />
An issue arises after I introduced toLowerCase() function.
Below is the error message that appears:
[Vue warn]: Error in render: "TypeError: Cannot read property 'toLowerCase' of undefined"
I would greatly appreciate any assistance on this matter. Thank you!