Skip to content

Commit 0824985

Browse files
chore: fix settings page
1 parent 52c844a commit 0824985

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/pages/_app.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ const OpenSans = Open_Sans({ subsets: ['latin'] })
3939
function MaiaPlatform({ Component, pageProps }: AppProps) {
4040
const router = useRouter()
4141
const isAnalysisPage = router.pathname.startsWith('/analysis')
42-
const isPageWithAnalysis = ['/analysis', '/openings', '/puzzles'].some(
43-
(path) => router.pathname.includes(path),
44-
)
42+
const isPageWithAnalysis = [
43+
'/analysis',
44+
'/openings',
45+
'/puzzles',
46+
'/settings',
47+
].some((path) => router.pathname.includes(path))
4548

4649
useEffect(() => {
4750
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY as string, {

0 commit comments

Comments
 (0)