Skip to content

Commit

Permalink
Remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
midudev committed Apr 25, 2024
1 parent 1f4deca commit 03ffa44
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sections/Forecasts.astro
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ const boxers = combat?.boxers.map((boxer) => BOXERS.find((b) => b.id === boxer))

document.addEventListener("astro:page-load", () => {
const $forecast = $("#forecast") as HTMLElement
console.log($forecast)
if ($forecast == null) return

const combatId = $forecast.getAttribute("data-combat-id")
console.log(combatId)
fetch(`/api/forecasts/get-forecast-by-combat-id.json?id=${combatId}`)
.then((res) => res.json())
.then((json: { data: { totalVotes: number; percentageVotes: Record<string, number> } }) => {
Expand Down

0 comments on commit 03ffa44

Please sign in to comment.