diff --git a/beta/src/components/Layout/Nav/Nav.tsx b/beta/src/components/Layout/Nav/Nav.tsx index 60eabc24..633f0364 100644 --- a/beta/src/components/Layout/Nav/Nav.tsx +++ b/beta/src/components/Layout/Nav/Nav.tsx @@ -187,7 +187,7 @@ export default function Nav() { }); }, [showFeedback]); - function selectTab(nextTab) { + function selectTab(nextTab: 'learn' | 'apis' | 'home') { setTab(nextTab); scrollParentRef.current!.scrollTop = 0; }