Skip to content

Commit

Permalink
pcp showing cart by default instead of map tab on first load
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdoh0109 committed Jan 19, 2025
1 parent b247fba commit 161a7d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/plan/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ function Index() {
const [selectedTab, setSelectedTab] = useState<TabItem>(TabItem.Cart);
useEffect(() => {
setSelectedTab(
router.asPath.split("#")[1] === TabItem.Cart
? TabItem.Cart
router.asPath.split("#")[1] === TabItem.Map
? TabItem.Map
: router.asPath.split("#")[1] === TabItem.Alerts
? TabItem.Alerts
: TabItem.Map
: TabItem.Cart
);
}, []);

Expand Down

0 comments on commit 161a7d2

Please sign in to comment.