Fix a typo when toggling the visibility of devices