diff --git a/index.html b/index.html
index 3d20029..3c72d68 100644
--- a/index.html
+++ b/index.html
@@ -608,7 +608,7 @@
let label = details[id];
let val;
- if (e.currentTarget.type === 'switch') {
+ if (e.currentTarget.type === 'checkbox') {
if (typeof label === 'string') {
let opposite = label.slice(0, 5) === 'opp__';
if (opposite) label = label.slice(5);