diff --git a/frontend/app/page.js b/frontend/app/page.js index 5aeae13..6d1fede 100644 --- a/frontend/app/page.js +++ b/frontend/app/page.js @@ -115,7 +115,7 @@ export default function Home() {
diff --git a/frontend/app/post/[pid]/page.jsx b/frontend/app/post/[pid]/page.jsx index 8b69a7e..af5be0c 100644 --- a/frontend/app/post/[pid]/page.jsx +++ b/frontend/app/post/[pid]/page.jsx @@ -139,10 +139,15 @@ const Layout = () => { ) : (post && (
-
- - On {post.selectedChain.name} -
+ { + post.selectedChain?.image && ( +
+ + On {post.selectedChain.name} +
+ ) + }

{post.title}

Reward: {reward} USD
diff --git a/frontend/app/vote/page.jsx b/frontend/app/vote/page.jsx index 396ecd8..07f4897 100644 --- a/frontend/app/vote/page.jsx +++ b/frontend/app/vote/page.jsx @@ -130,12 +130,17 @@ export default function Home() { onClick={() => handlePostClick(post.id)} > -
- -
- Created on {new Date(post.date).toLocaleDateString()} at {new Date(post.date).toLocaleTimeString()} -
-
+ { + post.selectedChain?.image && ( +
+ +
+ Created + on {new Date(post.date).toLocaleDateString()} at {new Date(post.date).toLocaleTimeString()} +
+
) + }

{post.title}

{post.description}
diff --git a/frontend/components/users/Posts.jsx b/frontend/components/users/Posts.jsx index cdc4bb5..46974d4 100644 --- a/frontend/components/users/Posts.jsx +++ b/frontend/components/users/Posts.jsx @@ -64,10 +64,14 @@ function Page() { className="relative bg-white p-4 rounded border-1 mb-4 cursor-pointer hover:shadow-lg hover:shadow-gray-200" onClick={() => handlePostClick(post.id)} > -
- -
+ { + post.selectedChain?.image && ( +
+ +
) + } +

{post.title}

{post.options.map((option, i) => (