Skip to content

Commit 545c09c

Browse files
committed
removed empty reposts message when loading reposts on profile page
1 parent 71b6391 commit 545c09c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/id/_id/reposts.vue

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<section class="px-0">
3-
<article v-if="reposts.length == 0" class="mt-32 grid justify-items-center px-10 xl:px-0">
3+
<article v-if="reposts.length === 0 && !isLoading" class="mt-32 grid justify-items-center px-10 xl:px-0">
44
<p class="text-gray5 mb-5 text-sm">
55
<span v-if="$route.params.id === $store.state.session.id"
66
>It seems you haven't reposted any content yet, you can repost any post:</span
@@ -28,7 +28,11 @@
2828
:isDeleted="p.deleted"
2929
/>
3030
</article>
31-
<p v-if="noMorePosts" class="text-gray5 py-5 text-center text-sm" style="backdrop-filter: blur(10px)">
31+
<p
32+
v-if="noMorePosts && reposts.length !== 0"
33+
class="text-gray5 py-5 text-center text-sm"
34+
style="backdrop-filter: blur(10px)"
35+
>
3236
No more posts
3337
</p>
3438
<article v-show="isLoading" class="flex justify-center">

0 commit comments

Comments
 (0)