From 956937762af054a11f5a34b98c8d25f5b1bcf48a Mon Sep 17 00:00:00 2001 From: Alexander Chabin Date: Sat, 29 Jul 2023 21:42:11 +0500 Subject: [PATCH] Remove welcome card in main page --- client/components/Map/MainContainer/MapMainContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/Map/MainContainer/MapMainContainer.tsx b/client/components/Map/MainContainer/MapMainContainer.tsx index 535606ec..4f583960 100644 --- a/client/components/Map/MainContainer/MapMainContainer.tsx +++ b/client/components/Map/MainContainer/MapMainContainer.tsx @@ -27,7 +27,7 @@ function MapMainContainer({ zoom = 16, showControls = true }) { try { const hasVisited = localStorage.getItem('hasVisited'); - if (!hasVisited) { + if (!hasVisited && showControls) { sidebarService.open({ component: }); localStorage.setItem('hasVisited', '1'); }