File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ const Themes: React.FC = () => {
49
49
useEffect ( ( ) => {
50
50
//to update the current focused theme based on url and fetched themes
51
51
const focusedThemeId = searchParams . get ( 'theme' ) || '' ;
52
- if ( focusedThemeId == '' ) {
52
+ if ( focusedThemeId == '' ) {
53
53
return ;
54
54
}
55
55
const focusedThemeObject = themes . find ( theme => theme . id === focusedThemeId ) ;
56
- if ( ! focusedThemeObject ) {
56
+ if ( ! focusedThemeObject ) {
57
57
return
58
58
}
59
59
setFocusedTheme ( focusedThemeObject )
@@ -161,7 +161,7 @@ const Themes: React.FC = () => {
161
161
</ div >
162
162
< ThemeModal
163
163
isOpen = { focusedTheme !== null }
164
- onClose = { ( ) => ( setFocusedTheme ( modalCloseHandler ) ) }
164
+ onClose = { ( ) => ( setFocusedTheme ( modalCloseHandler ( ) ) ) }
165
165
theme = { focusedTheme as Theme }
166
166
/>
167
167
{ /* Drawer Section */ }
You can’t perform that action at this time.
0 commit comments