From 313097c42754a8757fea9e63ada1b1b94f832cdc Mon Sep 17 00:00:00 2001 From: Shiny Nematoda Date: Fri, 28 Jul 2023 10:58:13 +0000 Subject: [PATCH] fix like broken in https://codeberg.org/Hyperpipe/Hyperpipe/commit/d0245c273e88dccfb97caad7a1ae0760dd2f37ca Signed-off-by: Shiny Nematoda --- src/components/StatusBar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/StatusBar.vue b/src/components/StatusBar.vue index 96f76fd..dd39883 100644 --- a/src/components/StatusBar.vue +++ b/src/components/StatusBar.vue @@ -51,10 +51,10 @@ async function Offline() { async function Like() { liking.value = true; - remote.value = await getAuthPlaylists(); - - let fav = remote.value.find(i => i.name == 'Playlist - Favorites'); + const remote = await getAuthPlaylists(); + let fav = remote.find(i => i.name == 'Playlist - Favorites'); + if (!fav) { const { playlistId } = await useAuthCreatePlaylist('Favorites');