corrected closeModalOnClick assignment

The value was always true