fix: region

This commit is contained in:
TrèsAbhi committed 2024-09-01 19:12:32 -05:00
1 parent 2f10e68e98
commit 176eb1424d
2 files changed
+2 -2

No files matched your search

@@ -145,7 +145,7 @@ export function VoteCaster() {
> >
{postVote === true && ( {postVote === true && (
<AlertDialog.Content maxWidth="20rem"> <AlertDialog.Content maxWidth="20rem">
<AlertDialog.Title>Vote cased</AlertDialog.Title> <AlertDialog.Title>Vote casted</AlertDialog.Title>
<AlertDialog.Description> <AlertDialog.Description>
It may take a few minutes for it to show up. It may take a few minutes for it to show up.
</AlertDialog.Description> </AlertDialog.Description>
+1 -1
View File
@@ -12,7 +12,7 @@ export async function isValidBlitzId(id: number, token?: string) {
} }
const json = await fetch( const json = await fetch(
`https://api.wotblitz.com/wotb/account/info/?account_id=${ `https://api.wotblitz.${region}/wotb/account/info/?account_id=${
id id
}&application_id=${WARGAMING_APPLICATION_ID}${ }&application_id=${WARGAMING_APPLICATION_ID}${
token === undefined ? '' : `&access_token=${token}` token === undefined ? '' : `&access_token=${token}`