File tree Expand file tree Collapse file tree
frontend/src/ts/collections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import { applyIdWorkaround } from "./utils/misc";
4040import { getConfig } from "../config/store" ;
4141import { getMode2 } from "../utils/misc" ;
4242import { getCurrentQuote } from "../states/test" ;
43+ import { removeLanguageSize } from "../utils/strings" ;
4344
4445export type ResultsQueryState = {
4546 difficulty : SnapshotResult < Mode > [ "difficulty" ] [ ] ;
@@ -590,10 +591,18 @@ export type CurrentSettingsFilter = {
590591export function useUserAverage10LiveQuery ( options : {
591592 isEnabled : Accessor < boolean > ;
592593} ) {
593- const settingsFilter = createMemo ( ( ) => ( {
594- ...getConfig ,
595- mode2 : getMode2 ( getConfig , getCurrentQuote ( ) ) ,
596- } ) ) ;
594+ const settingsFilter = createMemo ( ( ) => {
595+ const language =
596+ getConfig . mode === "quote"
597+ ? removeLanguageSize ( getConfig . language )
598+ : getConfig . language ;
599+
600+ return {
601+ ...getConfig ,
602+ mode2 : getMode2 ( getConfig , getCurrentQuote ( ) ) ,
603+ language,
604+ } ;
605+ } ) ;
597606
598607 const activeTagsQuery = useActiveTagsLiveQuery ( ) ;
599608
You can’t perform that action at this time.
0 commit comments