Detect just settings tab w/o section

This commit is contained in:
Ian Philips 2022-09-12 14:41:30 -06:00
parent e35c0b3b52
commit 3a814a5b5d

View File

@ -67,9 +67,11 @@ export default function Notifications() {
useEffect(() => {
const query = { ...router.query }
if (query.tab === 'settings') {
setActiveIndex(1)
}
if (query.section) {
setNavigateToSection(query.section as string)
setActiveIndex(1)
}
}, [router.query])