Skip to content

Commit

Permalink
🚀 Fix 2 for ratio (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
zatonix authored Aug 8, 2024
1 parent e4c3057 commit 9d43bd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/app/(general)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default async function DashboardPage() {
>
<CardHeader>
<CardTitle>Victory Ratio</CardTitle>
<Text as='h3'>{victoryRatioAverage}%</Text>
<Text as='h3'>{victoryRatioAverage.toFixed(2)}%</Text>
</CardHeader>
<CardContent className='flex flex-col'>
<RatioVictoryChart data={victoryRatioData} />
Expand Down
2 changes: 1 addition & 1 deletion chesscom-synchronizer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion lichess-synchronizer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9d43bd7

Please sign in to comment.