From 4f41cc0f27c11fe08109b00a567d949128fc12d2 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 10 Mar 2023 19:00:20 +0800 Subject: [PATCH] Add fallback image if banner image failed --- src/components/account.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/account.jsx b/src/components/account.jsx index 8f100660..1f787c82 100644 --- a/src/components/account.jsx +++ b/src/components/account.jsx @@ -123,7 +123,14 @@ function Account({ account, instance: propInstance, onClose }) { info && ( <> {header && !/missing\.png$/.test(header) && ( - + { + e.target.src = headerStatic; + }} + /> )}