From 188c9b656a4b5f416515c949e7d43f42874a2112 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 7 Jan 2026 23:27:19 +0100 Subject: [PATCH] Update profile picture URL and add error handling in EntryPage --- client/src/pages/EntryPage.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/client/src/pages/EntryPage.tsx b/client/src/pages/EntryPage.tsx index 967c138..bd22d54 100644 --- a/client/src/pages/EntryPage.tsx +++ b/client/src/pages/EntryPage.tsx @@ -74,7 +74,17 @@ export default function EntryPage() {
{ig.profile_pic_url ? ( - {ig.username + {ig.username { + if (ig.profile_pic_url && !e.currentTarget.dataset.fallback) { + e.currentTarget.dataset.fallback = '1'; + e.currentTarget.src = ig.profile_pic_url; + } + }} + /> ) : (