Skip to content

Commit 88b7a09

Browse files
committed
feat(users): add error message when there is no users found
1 parent 2fc19de commit 88b7a09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/Contributors.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
/>
2424
</div>
2525
</div>
26-
<PaginationBar @fetch-current-page="fetchCurrentPage" />
26+
<div v-if="users?.length <= 0" class="flex justify-center py-14">
27+
<p class="">Sorry, no users were found</p>
28+
</div>
29+
<PaginationBar v-else @fetch-current-page="fetchCurrentPage" />
2730
</div>
2831
</template>
2932

0 commit comments

Comments
 (0)