diff --git a/src/locales b/src/locales index 688f74e..a808443 160000 --- a/src/locales +++ b/src/locales @@ -1 +1 @@ -Subproject commit 688f74e9b5651adb080f540419dc196791058419 +Subproject commit a808443069fb20faf1696cba510f905c492c67f9 diff --git a/src/views/FollowingView.vue b/src/views/FollowingView.vue index 39ebffa..7d7110e 100644 --- a/src/views/FollowingView.vue +++ b/src/views/FollowingView.vue @@ -3,6 +3,7 @@ import { ref, inject } from 'vue' import FollowButton from '@/components/FollowButton.vue' import LoadingScreen from '@/components/LoadingScreen.vue' +import ErrorMessage from '@/components/ErrorMessage.vue' import { getFollows } from '@/settingsManager' import { postEndpoint, abbreviate } from '@/mixins' @@ -30,6 +31,12 @@ export default { streamers: follows } + // do not make request if no followers + if (follows.length == 0) { + this.data = [] + return + } + await postEndpoint('api/users/bulk', payload) .catch(() => { this.status = 'error' @@ -40,13 +47,21 @@ export default { }, components: { LoadingScreen, - FollowButton + FollowButton, + ErrorMessage } }