on master help sign in
post: fix the *other* usage of matchedpost image
commitfded247a0964bd7b7f4fcb809e8904db1067318a authorMatilde Park <matilde.park@urbit.org> dateTue 30 Aug 2022, 17:24 (4 years ago) parente8d4b3b
1 file changed+2−1
components/ecosystem/Post.js+2−1
components/ecosystem/Post.js+2−1
@@ -3,6 +3,7 @@ import classnames from "classnames";
33import Link from "next/link";
44export default function Post({ post }) {
55 return ["featured-1", "featured-2", "featured-3"].map((feat) => {
6+ console.log(post[feat]?.matchedPost);
67 const childPath =
78 post[feat] && post[feat]?.matchedPost?.type === "Application"
89 ? `${post[feat]?.matchedPost.ship}/${post[feat].matchedPost.slug}`
@@ -26,7 +27,7 @@ export default function Post({ post }) {
2627 {post[feat]?.matchedPost?.image && (
2728 <img
2829 className="rounded-xl w-24 object-cover"
29− src={post[feat].image}
30+ src={post[feat]?.matchedPost?.image}
3031 />
3132 )}
3233 </div>