Skip to content

Commit

Permalink
change fetch size to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwooha98 committed Dec 16, 2021
1 parent 9d06f17 commit f8c4ff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useLeaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const useLeaderboard = () => {
const getUserLeaderboard = useCallback(
async ({
gameType,
size = 1000,
size = 100,
}: {
gameType: 'GAME_KARROT' | 'GAME_2048';
size: number;
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Game2048/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const Home: React.FC = () => {
});
const leaderboard = await updateLeaderboard({
gameType: 'GAME_2048',
size: 1000,
size: 100,
});
updateMyTownData({
townLeaderboard: leaderboard?.townLeaderboard!,
Expand All @@ -180,7 +180,7 @@ export const Home: React.FC = () => {
} else {
const leaderboard = await updateLeaderboard({
gameType: 'GAME_2048',
size: 1000,
size: 100,
});
updateMyTownData({
townLeaderboard: leaderboard?.townLeaderboard!,
Expand Down

0 comments on commit f8c4ff7

Please sign in to comment.