Fis JS undefined for non logged in users

This commit is contained in:
Kilian committed 2024-06-21 12:48:45 +02:00
1 parent 5f573a468f
commit 32d4a62246
1 file changed
+1 -1
+1 -1
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();