LandingPage: Fix "no-unnecessary-condition" issues

This commit is contained in:
regexowl 2025-01-17 09:21:19 +01:00 committed by Lucas Garfield
parent 08e0a0c384
commit d2b644b65f

View file

@ -49,7 +49,7 @@ export const LandingPage = () => {
}, [initialActiveTabKey]);
const handleTabClick = (_event: React.MouseEvent, tabIndex: number) => {
const tabPath = tabsPath[tabIndex];
if (tabPath !== undefined) {
if (tabPath !== '') {
navigate(tabPath);
}
setActiveTabKey(tabIndex);