Environment variable deletion modal tricks me into deleting more variables

As a lazy and reckless user, when I click the “x” icon next to an environment variable in my build settings, then I see a modal confirming that I want to remove the environment variable. When I click the “Remove” button, the environment variable gets removed, but the modal does not dismiss. Instead the modal prompts me to remove another environment variable. Since I’m lazy and reckless, and I expected the modal to have been dismissed, I click “Remove” again, expecting the modal to be dismissed, and not realizing that I have removed a different environment variable.

I expect the confirmation modal to dismiss when I click “Remove”.