diff --git a/src/lib/transistor.ts b/src/lib/transistor.ts index 6e4eb67..699bd0e 100644 --- a/src/lib/transistor.ts +++ b/src/lib/transistor.ts @@ -130,7 +130,7 @@ export const getAllEpisodeSlugs = async () => { !data?.data?.length || data.meta.currentPage >= data.meta.totalPages ) { - return; + return slugs; } slugs = [ @@ -166,7 +166,7 @@ export const getAllEpisodes = async () => { !data?.data?.length || data.meta.currentPage >= data.meta.totalPages ) { - return; + return episodes; } episodes = [...episodes, ...data.data];