Skip to content

Commit eab9021

Browse files
committed
some small changes
1 parent dc96590 commit eab9021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/Themes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ const Themes: React.FC = () => {
4949
useEffect(()=>{
5050
//to update the current focused theme based on url and fetched themes
5151
const focusedThemeId = searchParams.get('theme') || '';
52-
if(focusedThemeId == ''){
52+
if (focusedThemeId == '') {
5353
return;
5454
}
5555
const focusedThemeObject = themes.find(theme => theme.id === focusedThemeId);
56-
if(!focusedThemeObject){
56+
if (!focusedThemeObject) {
5757
return
5858
}
5959
setFocusedTheme(focusedThemeObject)
@@ -161,7 +161,7 @@ const Themes: React.FC = () => {
161161
</div>
162162
<ThemeModal
163163
isOpen={focusedTheme !== null}
164-
onClose={()=>(setFocusedTheme(modalCloseHandler))}
164+
onClose={()=>(setFocusedTheme(modalCloseHandler()))}
165165
theme={focusedTheme as Theme}
166166
/>
167167
{/* Drawer Section */}

0 commit comments

Comments
 (0)