Skip to content

Commit 7b67a14

Browse files
committed
Update index.tsx
1 parent ced1d62 commit 7b67a14

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/navLink/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ const NavLink = ({caller, data, onItemClick}: NavLinkProps) => {
5050
const handleOnClick = () => {
5151
const dao = daoMatch?.params?.dao;
5252
onItemClick?.();
53-
// timeout is to allow any state changes triggered by onItemClick to take effect
54-
// before navigation occurs, potentially unmounting components
55-
setTimeout(() => navigate(generatePath(data.path, {network, dao})), 100);
53+
navigate(generatePath(data.path, {network, dao}));
5654
};
5755

5856
if (caller === 'dropdown') {

0 commit comments

Comments
 (0)