diff --git a/src/pages/[redirect]/index.tsx b/src/pages/[redirect]/index.tsx index 414c007..90f43be 100644 --- a/src/pages/[redirect]/index.tsx +++ b/src/pages/[redirect]/index.tsx @@ -20,7 +20,7 @@ const Redirect = () => { }); useEffect(() => { - if (shortUrlCode && data?.url.originalUrl) { + if (shortUrlCode && `${TINY_API_URL}/redirect/${shortUrlCode}`) { startTimer(); } }, [timer, data]);