From 0db7585accfc28b1645195b178c1f680803bfa49 Mon Sep 17 00:00:00 2001 From: Ryan Miller Date: Thu, 26 Sep 2024 09:31:05 +1000 Subject: [PATCH] fix: add pubkey to dep array --- apps/staking/components/NodeRegistrationCard.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/staking/components/NodeRegistrationCard.tsx b/apps/staking/components/NodeRegistrationCard.tsx index e6a4ca26..3c124875 100644 --- a/apps/staking/components/NodeRegistrationCard.tsx +++ b/apps/staking/components/NodeRegistrationCard.tsx @@ -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(