mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 05:17:18 +00:00

Right now we emit "Toggle drive" analytics events even when clicking on disable/unselectable drives. The fix is to move the `analytics.logEvent` inside the code path that applies if a drive selection is considered valid. Change-Type: patch Changelog-Entry: Don't send analytics events when attempting to toggle a disabled drive. Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>