optional chaining

This commit is contained in:
Henry Jameson 2026-08-04 15:59:52 +03:00
commit cf85b00c0a
26 changed files with 34 additions and 34 deletions

View file

@ -220,7 +220,7 @@
</router-link>
</li>
<li
v-if="currentUser && currentUser.role === 'admin'"
v-if="currentUser?.role === 'admin'"
@click="toggleDrawer"
>
<button