From 9b70ef5ebd281ead57523be24659b984a4ccebab Mon Sep 17 00:00:00 2001
From: Michele Alberti <michele.alberti@cea.fr>
Date: Mon, 8 Jun 2020 10:18:34 +0200
Subject: [PATCH] [ivette] Useless check with correct type for selectTheme.

---
 ivette/src/renderer/ASTview.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivette/src/renderer/ASTview.tsx b/ivette/src/renderer/ASTview.tsx
index 75506913f91..0787045d89b 100644
--- a/ivette/src/renderer/ASTview.tsx
+++ b/ivette/src/renderer/ASTview.tsx
@@ -124,7 +124,7 @@ const ASTview = () => {
   }
 
   // Theme Popup
-  const selectTheme = (id?: string) => id && setTheme(id);
+  const selectTheme = (id: string) => setTheme(id);
   const checkTheme =
     (th: { id: string }) => ({ checked: th.id === theme, ...th });
   const themePopup =
-- 
GitLab