From f911673f5d430dd6ed4cbed2b0a24053684946f4 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 8 Jan 2022 17:39:14 +0100 Subject: [PATCH] returning if previous and current is the same --- src/js/test/test-config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/test/test-config.js b/src/js/test/test-config.js index ada7ac4fb..f0203cd3f 100644 --- a/src/js/test/test-config.js +++ b/src/js/test/test-config.js @@ -44,6 +44,7 @@ export function hide() { } export function update(previous, current) { + if (previous == current) return; $("#top .config .mode .text-button").removeClass("active"); $("#top .config .mode .text-button[mode='" + current + "']").addClass( "active"