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); })