diff --git a/frontend/src/ts/collections/results.ts b/frontend/src/ts/collections/results.ts index 7a4de663911a..c742e1d7e491 100644 --- a/frontend/src/ts/collections/results.ts +++ b/frontend/src/ts/collections/results.ts @@ -40,6 +40,7 @@ import { applyIdWorkaround } from "./utils/misc"; import { getConfig } from "../config/store"; import { getMode2 } from "../utils/misc"; import { getCurrentQuote } from "../states/test"; +import { removeLanguageSize } from "../utils/strings"; export type ResultsQueryState = { difficulty: SnapshotResult["difficulty"][]; @@ -590,10 +591,18 @@ export type CurrentSettingsFilter = { export function useUserAverage10LiveQuery(options: { isEnabled: Accessor; }) { - const settingsFilter = createMemo(() => ({ - ...getConfig, - mode2: getMode2(getConfig, getCurrentQuote()), - })); + const settingsFilter = createMemo(() => { + const language = + getConfig.mode === "quote" + ? removeLanguageSize(getConfig.language) + : getConfig.language; + + return { + ...getConfig, + mode2: getMode2(getConfig, getCurrentQuote()), + language, + }; + }); const activeTagsQuery = useActiveTagsLiveQuery();