From dc2fb39fb7f5d6db6ee07742b7bccca53a41f959 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Wed, 28 Jan 2026 19:54:38 +0000 Subject: [PATCH] fix: incorrect attr name for word cloud --- frontend/src/stats/WordCloud.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/stats/WordCloud.tsx b/frontend/src/stats/WordCloud.tsx index 7b3be09..5477053 100644 --- a/frontend/src/stats/WordCloud.tsx +++ b/frontend/src/stats/WordCloud.tsx @@ -4,7 +4,7 @@ import axios from "axios"; type BackendWord = { word: string; - frequency: number; + count: number; } const WordCloud = () => { @@ -17,7 +17,7 @@ const WordCloud = () => { .get("http://localhost:5000/stats/word_frequencies") .then(res => { const mapped = res.data.map((d: BackendWord) => ( - {text: d.word, value: d.frequency} + {text: d.word, value: d.count} )); setWords(mapped); })