@@ -66,7 +66,7 @@ export function LeaderboardPage(): JSXElement {
6666
6767 //update url after the data is loaded
6868 createEffect ( ( ) => {
69- if ( isOpen ( ) && dataQuery . isSuccess ) {
69+ if ( isOpen ( ) && entriesQuery . isSuccess ) {
7070 updateGetParameters ( getSelection ( ) , getPage ( ) ) ;
7171 }
7272 } ) ;
@@ -90,7 +90,7 @@ export function LeaderboardPage(): JSXElement {
9090 }
9191 } ) ;
9292
93- const dataQuery = useQuery ( ( ) => ( {
93+ const entriesQuery = useQuery ( ( ) => ( {
9494 ...getLeaderboardQueryOptions ( {
9595 ...getSelection ( ) ,
9696 page : getPage ( ) ?? 0 ,
@@ -193,26 +193,26 @@ export function LeaderboardPage(): JSXElement {
193193 />
194194
195195 < Show
196- when = { isAuthenticated ( ) && ! dataQuery . isLoading }
196+ when = { isAuthenticated ( ) && ! entriesQuery . isLoading }
197197 fallback = { < Separator /> }
198198 >
199199 < AsyncContent
200200 queries = { {
201- data : dataQuery ,
201+ entries : entriesQuery ,
202202 rank : rankQuery ,
203203 config : serverConfigurationQuery ,
204204 } }
205205 alwaysShowContent
206206 errorClass = "rounded bg-sub-alt p-4"
207207 >
208- { ( { dataData , rankData, configData } ) => (
208+ { ( { entriesData , rankData, configData } ) => (
209209 < UserRank
210210 type = { getSelection ( ) . type === "weekly" ? "xp" : "speed" }
211211 data = { rankData ( ) }
212212 friendsOnly = { getSelection ( ) . friendsOnly }
213- total = { dataData ( ) ?. count }
213+ total = { entriesData ( ) ?. count }
214214 minWpm = { ( ( ) => {
215- const d = dataData ( ) ;
215+ const d = entriesData ( ) ;
216216 return d && "minWpm" in d
217217 ? ( d . minWpm as number )
218218 : undefined ;
@@ -231,7 +231,7 @@ export function LeaderboardPage(): JSXElement {
231231 </ Show >
232232
233233 < AsyncContent
234- queries = { { data : dataQuery } }
234+ queries = { { data : entriesQuery } }
235235 loader = {
236236 < div class = "flex justify-center pt-4 text-4xl" >
237237 < LoadingCircle />
@@ -248,9 +248,9 @@ export function LeaderboardPage(): JSXElement {
248248 < NextUpdate type = { getSelection ( ) . type } />
249249 < Navigation
250250 isLoading = {
251- dataQuery . isLoading ||
252- dataQuery . isFetching ||
253- dataQuery . isRefetching
251+ entriesQuery . isLoading ||
252+ entriesQuery . isFetching ||
253+ entriesQuery . isRefetching
254254 }
255255 lastPage = { Math . ceil ( ( dataData ( ) ?. count ?? 0 ) / pageSize ) }
256256 userPage = { userPage ( ) }
0 commit comments