diff --git a/app/src/app/(general)/page.tsx b/app/src/app/(general)/page.tsx index 0bfc2fe..ce0d751 100644 --- a/app/src/app/(general)/page.tsx +++ b/app/src/app/(general)/page.tsx @@ -186,7 +186,7 @@ export default async function DashboardPage() { > Victory Ratio - {victoryRatioAverage}% + {victoryRatioAverage.toFixed(2)}% diff --git a/chesscom-synchronizer/src/main.ts b/chesscom-synchronizer/src/main.ts index 06d7346..42352bf 100644 --- a/chesscom-synchronizer/src/main.ts +++ b/chesscom-synchronizer/src/main.ts @@ -19,7 +19,7 @@ export const updateChesscomAccount = async (accountId: string) => { updateAccountStatus(accountId, true) - const archives = await getChesscomArchives(account.username) + const archives = await getChesscomArchives(account.username.trim()) if (archives.length === 0) { console.log('No archives found') diff --git a/lichess-synchronizer/src/main.ts b/lichess-synchronizer/src/main.ts index 37e0e04..fe2ab35 100644 --- a/lichess-synchronizer/src/main.ts +++ b/lichess-synchronizer/src/main.ts @@ -25,7 +25,7 @@ export const updateLichessAccount = async (accountId: string) => { console.log('Fetching lichess games for', account.username) const response = await fetch( - `https://lichess.org/api/games/user/${account.username}?clocks=true&opening=true&max=100`, + `https://lichess.org/api/games/user/${account.username.trim()}?clocks=true&opening=true&max=100`, { headers: { Accept: 'application/x-ndjson'