fix: clear all size cache on resize
Build and Push Image / build-backend (push) Successful in 26s
Build and Push Image / build-frontend (push) Successful in 3m18s
Build and Push Image / push (push) Successful in 50s

This commit is contained in:
2026-06-15 13:52:25 +07:00 Unverified
parent 1ac45dbc8b
commit 325bb01324
+1 -2
View File
@@ -67,8 +67,7 @@ export default function TopDonateWidget() {
useEffect(() => {
const onResize = () => {
const key = `${bar?.goal}${bar?.amount}`;
delete stableSize.current[key];
stableSize.current = {};
setResizeTick((t) => t + 1);
};
window.addEventListener("resize", onResize);