Skip to content

Commit 9c2cb2e

Browse files
committed
fix: remove unused avatarVersion state (lint error)
1 parent 39aff5f commit 9c2cb2e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/ReportPageLayout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,12 @@ export function ReportPageLayout({ schema, allowedReportTypes, metricOptions }:
234234
);
235235

236236
// Pre-warm the avatar cache for any bot usernames in the current data
237-
const [avatarVersion, setAvatarVersion] = useState(0);
238237
useEffect(() => {
239238
const usernames = visibleRows
240239
.map((r) => (r as unknown as Record<string, unknown>).username as string)
241240
.filter(Boolean);
242241
if (usernames.length === 0) return;
243-
preloadBotAvatars(usernames).then((resolved) => {
244-
// Only bump version if new avatars were actually resolved
245-
if (resolved) setAvatarVersion((n) => n + 1);
246-
});
242+
preloadBotAvatars(usernames);
247243
}, [visibleRows]);
248244

249245
const [activeTab, setActiveTabRaw] = useState<ViewTab>(() => {

0 commit comments

Comments
 (0)