I\'m trying to make it so when a user clicks outside of a modal, it closes it. So far, it only works on the first modal, and not the second.
Here is my code: