fix: BlogListItem props

This commit is contained in:
Isaiah Hamilton committed 2022-03-25 22:46:31 -04:00
1 parent 3b1dcfb2f1
commit ccefa95d77
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ interface Props {
const BlogListItem = ({ post }: Props) => {
// @ts-ignore
const authorArray = blog.author.split(',')
const authorArray = post.author.split(',')
const author = []
for (let i = 0; i < authorArray.length; i++) {
@@ -93,8 +93,8 @@ function BlogPostPage(props: any) {
const author = []
for (let i = 0; i < authorArray.length; i++) {
// @ts-ignore
author.push(
// @ts-ignore
authors.find((authors: string) => {
// @ts-ignore
return authors.author_id === authorArray[i]