From 955ac3f3bc28a376cef6847eabdfaf8509de4599 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 21 Mar 2023 22:45:35 +0800 Subject: [PATCH] More cache --- src/components/avatar.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/avatar.jsx b/src/components/avatar.jsx index c8b7a962..5cb3f845 100644 --- a/src/components/avatar.jsx +++ b/src/components/avatar.jsx @@ -75,7 +75,8 @@ function Avatar({ url, size, alt = '', ...props }) { } alphaCache[url] = hasAlpha; } catch (e) { - // Ignore + // Silent fail + alphaCache[url] = false; } }} />