feat : add lichess user games import
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useLocalStorage } from "@/hooks/useLocalStorage";
|
||||
import { getUserRecentGames } from "@/lib/chessCom";
|
||||
import { getChessComUserRecentGames } from "@/lib/chessCom";
|
||||
import { capitalize } from "@/lib/helpers";
|
||||
import { ChessComGame } from "@/types/chessCom";
|
||||
import {
|
||||
@@ -33,7 +33,7 @@ export default function ChessComInput({ pgn, setPgn }: Props) {
|
||||
|
||||
const timeout = setTimeout(
|
||||
async () => {
|
||||
const games = await getUserRecentGames(chessComUsername);
|
||||
const games = await getChessComUserRecentGames(chessComUsername);
|
||||
setGames(games);
|
||||
},
|
||||
requestCount === 0 ? 0 : 500
|
||||
|
||||
Reference in New Issue
Block a user