Fis JS undefined for non logged in users

This commit is contained in:
Kilian Hofmann 2024-06-21 12:48:45 +02:00
parent 5f573a468f
commit 32d4a62246

View File

@ -28,7 +28,7 @@ document.addEventListener("DOMContentLoaded", () => {
const addValidation = () => {
const comment = document.getElementById("comment");
comment.addEventListener("input", handlerCounter);
comment?.addEventListener("input", handlerCounter);
};
addValidation();