Skip to content
Snippets Groups Projects
Commit 9b70ef5e authored by Michele Alberti's avatar Michele Alberti
Browse files

[ivette] Useless check with correct type for selectTheme.

parent ce9e81b8
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ const ASTview = () => { ...@@ -124,7 +124,7 @@ const ASTview = () => {
} }
// Theme Popup // Theme Popup
const selectTheme = (id?: string) => id && setTheme(id); const selectTheme = (id: string) => setTheme(id);
const checkTheme = const checkTheme =
(th: { id: string }) => ({ checked: th.id === theme, ...th }); (th: { id: string }) => ({ checked: th.id === theme, ...th });
const themePopup = const themePopup =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment