« first day (2682 days earlier)      last day (1420 days later) » 

 
14 hours later…
 
4 hours later…
 
1 hour later…
9:07 PM
Nobody here?
 
 
2 hours later…
10:40 PM
hey guys, I'm pretty sure this is a basic mistake but I'm not sure how to search after it.
This is my code
```
(async () => {
console.log("3. selectedVotes", selectedVotes)
let parties = await fetchVotingData(`${apiUrl}/votopartido`, selectedVotes);
console.log("4. selectedVotes", selectedVotes)
})()
```
 
1 message moved from JavaScript
 
yes
const fetchVotingData = async (url, body) => {
let myData = {};
if (url) {
try {
const response = await fetch(url, {
method: "POST",
body: JSON.stringify(body)
});
if (!response.ok) throw Error(response.statusText);
myData = await response.json();
} catch (error) {
console.log(error);
target.html("Error loading chart data");
}
}
return myData
};
 
1 message moved from JavaScript
 

« first day (2682 days earlier)      last day (1420 days later) »