Fallback when user try to access a non-existing creator

This commit is contained in:
Dominic Villemure
2024-07-05 00:24:58 -04:00
parent fb57d633df
commit 69d5f38d1f

View File

@@ -1,5 +1,5 @@
<template>
<div v-if="user">
<div v-if="user && user.id">
<CreatorBanner
:user="user"
></CreatorBanner>
@@ -35,6 +35,15 @@
</div>
</div>
<!-- Fallback when user try to access a non-existing creator -->
<div v-else>
<v-card>
<v-card-text style="text-align: center;">
Aucun créateur au nom de {{ route.params.creator }}
</v-card-text>
</v-card>
</div>
</template>
<script async setup>