Skip to content

Commit

Permalink
fix: add pubkey to dep array
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Sep 25, 2024
1 parent 61b8479 commit 0db7585
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/staking/components/NodeRegistrationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const NodeRegistrationCard = forwardRef<

const { pubkey_ed25519: pubKey, type: nodeType } = node;

const isRegistrationFormOpen = useMemo(() => pathname === `/register/${pubKey}`, [pathname]);
const isRegistrationFormOpen = useMemo(
() => pathname === `/register/${pubKey}`,
[pathname, pubKey]
);

// TODO - Include feature when we have user preference support
/*const hideRegistrationsEnabled = useExperimentalFeatureFlag(
Expand Down

0 comments on commit 0db7585

Please sign in to comment.