function rateProject(self) {
document.getElementsByClassName('modal')[5].style.display="block";
var docRef=self.getAttribute("id");
var downloadRef = db.collection("projects").doc(docRef);
    document.getElementById('rateOneStar').addEventListener('click',e=>{
        return downloadRef.update({
            oneStar: firebase.firestore.FieldValue.increment(1)
        })
        .then(function() {
            console.log("1 star given");
            document.getElementsByClassName('modal')[5].style.display="none";
        })
        .catch(function(error) {
            // The document probably doesn't exist.
            console.error("Error updating document: ", error);
        });
    })
}
This is what happens to oneStar:
(1 click: 1), (2 click: 3), (3 click: 6)
What I want:
(1 click: 1), (2 click: 2), (3 click: 3).
If I remove the eventListener it works.