Fix (hopefully) eslint error on node 14.x pipeline

Sascha created

Change summary

webui/src/components/Themer.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

webui/src/components/Themer.tsx 🔗

@@ -13,7 +13,8 @@ const ThemeContext = createContext({
 
 const LightSwitch = () => {
   const { mode, toggleMode } = useContext(ThemeContext);
-  const description = `Switch to ${mode === 'light' ? 'dark' : 'light'} theme`;
+  const nextMode = mode === 'light' ? 'dark' : 'light';
+  const description = `Switch to ${nextMode} theme`;
 
   return (
     <Tooltip title={description}>