File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
frontend/src/components/Layout Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -287,18 +287,18 @@ const PageLayout: React.FC = () => {
287287 if ( ( isAuthenticated || SKIP_AUTH ) && isFirstTimeUser ) {
288288 setActiveSpotlight ( 'connectbutton' ) ;
289289 }
290- } , [ isAuthenticated ] ) ;
290+ } , [ isAuthenticated , isFirstTimeUser ] ) ;
291291
292292 const toggleLeftDrawer = useCallback ( ( ) => {
293293 if ( isLargeDesktop ) {
294- setIsLeftExpanded ( ! isLeftExpanded ) ;
294+ setIsLeftExpanded ( ( old ) => ! old ) ;
295295 } else {
296296 setIsLeftExpanded ( false ) ;
297297 }
298298 } , [ isLargeDesktop ] ) ;
299299 const toggleRightDrawer = useCallback ( ( ) => {
300300 if ( isLargeDesktop ) {
301- setIsRightExpanded ( ! isRightExpanded ) ;
301+ setIsRightExpanded ( ( prev ) => ! prev ) ;
302302 } else {
303303 setIsRightExpanded ( false ) ;
304304 }
You can’t perform that action at this time.
0 commit comments