From 13e871043c005332e32c6d65b63f4940192c8946 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Sat, 24 Feb 2024 16:56:12 +0800 Subject: [PATCH] fix: fix theme switch bug (#2741) --- web/src/Setting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/Setting.js b/web/src/Setting.js index 203ae4bd..227d6b95 100644 --- a/web/src/Setting.js +++ b/web/src/Setting.js @@ -69,7 +69,7 @@ export function getThemeData(organization, application) { } export function getAlgorithm(themeAlgorithmNames) { - return themeAlgorithmNames.map((algorithmName) => { + return themeAlgorithmNames.sort().reverse().map((algorithmName) => { if (algorithmName === "dark") { return theme.darkAlgorithm; }