Skip to content

Commit

Permalink
fix: removed two second timeout for initial page load (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Nov 14, 2023
2 parents 34e7f92 + e49b799 commit d44248a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ const Home: WithPageLayout = () => {

useEffect(() => {
function redirect(destination: string) {
let redir = setTimeout(() => {
router.push(destination).then(() => {
clearTimeout(redir);
});
}, 2000);
router.push(destination);
}

async function getAccess() {
Expand Down

0 comments on commit d44248a

Please sign in to comment.