@@ -676,20 +676,20 @@ export default function QuestionsTable({ data, updatedDate }: { data: Question[]
676676 getFilteredRowModel : getFilteredRowModel ( ) ,
677677 } ) ;
678678
679- const filteredRows = table . getFilteredRowModel ( ) . rows ;
679+ const tableRows = table . getRowModel ( ) . rows ;
680680
681681 const stats = useMemo < ProgressStats > ( ( ) => {
682682 const totals = { Easy : 0 , Medium : 0 , Hard : 0 } ;
683683 const done = { Easy : 0 , Medium : 0 , Hard : 0 } ;
684- for ( const row of filteredRows ) {
684+ for ( const row of tableRows ) {
685685 const q = row . original ;
686686 totals [ q . difficulty ] ++ ;
687687 if ( completed . has ( q . id ) ) done [ q . difficulty ] ++ ;
688688 }
689- const total = filteredRows . length ;
689+ const total = tableRows . length ;
690690 const totalDone = done . Easy + done . Medium + done . Hard ;
691691 return { totals, done, total, totalDone } ;
692- } , [ filteredRows , completed ] ) ;
692+ } , [ tableRows , completed ] ) ;
693693
694694 const pickRandom = useCallback ( ( ) => {
695695 const unsolved = table
@@ -928,8 +928,6 @@ export default function QuestionsTable({ data, updatedDate }: { data: Question[]
928928 const companySortActive = sorting . some ( ( s ) => s . id === "companies" ) ;
929929 const companySortDesc = sorting . find ( ( s ) => s . id === "companies" ) ?. desc ?? true ;
930930
931- const tableRows = table . getRowModel ( ) . rows ;
932-
933931 const groupedRows = useMemo ( ( ) => {
934932 if ( shuffleOrder ) {
935933 const orderMap = new Map ( shuffleOrder . map ( ( id , i ) => [ id , i ] ) ) ;
0 commit comments