ddMemberModal) {
                addMemberModal.style.display = "none";
            }
            if (event.target === kudosModal) {
                kudosModal.style.display = "none";
            }
        }

        // Make sure the createTeamForm event listener only runs if the form exists
        const createTeamForm = document.getElementById('createTeamForm');
        if (createTeamForm) {
            createTeamForm.onsubmit = function(event) {
            event.preventDefault();
            const formD