diff --git a/components/navigasyon.js b/components/navigasyon.js index 0183f22..571d364 100644 --- a/components/navigasyon.js +++ b/components/navigasyon.js @@ -74,7 +74,9 @@ export default function Navigasyon({selectedTab}) { const handleChange = (event, newValue) => { setValue(newValue) - router.push(tabRouteHref[newValue], tabRouteAs[newValue]) + if (newValue !== selectedTab) { + router.push(tabRouteHref[newValue], tabRouteAs[newValue]) + } } return (