Skip to content

Commit

Permalink
Fix url with valid counter name
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz authored Dec 2, 2024
1 parent 6e643f3 commit 945bab9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function buildAdventOfTheDay(options: Options) {
}

function onSubmit(event: React.SyntheticEvent<HTMLFormElement>) {
fetch(`https://api.counterapi.dev/v1/fast-check/advent-of pbt-day-${day}-2024-attempt/up`)
fetch(`https://api.counterapi.dev/v1/fast-check/AdventOfPBT2024Day${day}Attempt/up`)
.then((response) => response.json())
.catch(() => {});
event.preventDefault();
Expand All @@ -95,7 +95,7 @@ export function buildAdventOfTheDay(options: Options) {
}
lastError = null;
localStorage.setItem(storageKey, answer);
fetch(`https://api.counterapi.dev/v1/fast-check/advent-of pbt-day-${day}-2024-success/up`)
fetch(`https://api.counterapi.dev/v1/fast-check/AdventOfPBT2024Day${day}Success/up`)
.then((response) => response.json())
.catch(() => {});
} catch (err) {
Expand Down

0 comments on commit 945bab9

Please sign in to comment.