diff --git a/frontend/__tests__/utils/strings.spec.ts b/frontend/__tests__/utils/strings.spec.ts
index c76d93f8f27c..293cd57c01bc 100644
--- a/frontend/__tests__/utils/strings.spec.ts
+++ b/frontend/__tests__/utils/strings.spec.ts
@@ -1041,6 +1041,38 @@ describe("string utils", () => {
missed: 0,
},
},
+ {
+ description: "count extra chars as extra",
+ input: {
+ inputWord: "abcx",
+ targetWord: "abc ",
+ lastWord: true,
+ shouldLastPartialWordCount: true,
+ },
+ expected: {
+ allCorrect: 3,
+ correctWord: 0,
+ incorrect: 0,
+ extra: 1,
+ missed: 0,
+ },
+ },
+ {
+ description: "count extra chars as extra (with space)",
+ input: {
+ inputWord: "abcx ",
+ targetWord: "abc ",
+ lastWord: true,
+ shouldLastPartialWordCount: true,
+ },
+ expected: {
+ allCorrect: 3,
+ correctWord: 0,
+ incorrect: 1,
+ extra: 1,
+ missed: 0,
+ },
+ },
];
it.each(testCases)("$description", ({ input, expected }) => {
diff --git a/frontend/src/ts/components/pages/account/HistoryChart.tsx b/frontend/src/ts/components/pages/account/HistoryChart.tsx
index d79c4f591d7a..2b67022e8a5c 100644
--- a/frontend/src/ts/components/pages/account/HistoryChart.tsx
+++ b/frontend/src/ts/components/pages/account/HistoryChart.tsx
@@ -318,7 +318,7 @@ export function HistoryChart(props: {
-
+