Fix findLatestPosts implementation

This commit is contained in:
prototypa
2023-01-21 22:31:30 -05:00
parent b49e430124
commit de766602fd

View File

@ -82,5 +82,5 @@ export const findLatestPosts = async ({ count }: { count?: number }): Promise<Ar
const _count = count || 4;
const posts = await fetchPosts();
return posts ? posts.slice(_count * -1) : [];
return posts ? posts.slice(0, _count) : [];
};