From dbee2e6370b178528f38a8403ec0f32102f2cc5d Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 9 Dec 2020 17:10:43 -0500
Subject: [PATCH] name is safeer, should be unique

---
 src/gui/options/options.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gui/options/options.js b/src/gui/options/options.js
index e5b2392645e..882c1b3440c 100644
--- a/src/gui/options/options.js
+++ b/src/gui/options/options.js
@@ -277,7 +277,7 @@ App.UI.OptionsGroup = (function() {
 					} else {
 						this.object[this.property] = Number(O.value);
 					}
-					const originalObj = this.valuePairs.find(obj => obj.value == O.value);
+					const originalObj = this.valuePairs.find(obj => obj.name === O.textContent);
 					if (originalObj && originalObj.hasOwnProperty("callback")) {
 						originalObj.callback();
 					}
-- 
GitLab