Skip to content

Commit

Permalink
refactor: enable validator resignation in multiple-address view
Browse files Browse the repository at this point in the history
  • Loading branch information
shahin-hq committed Feb 3, 2025
1 parent 3a0b39a commit 3cc024a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ export const SendRegistration = () => {
const [network] = useNetworks({ profile: activeProfile });

const activeWallet = useMemo(() => {
if (activeWalletFromUrl) {
return activeWalletFromUrl;
}

if (senderAddress) {
return activeProfile.wallets().findByAddressWithNetwork(senderAddress, network.id());
}

if (activeWalletFromUrl) {
return activeWalletFromUrl;
}
}, [activeProfile, activeWalletFromUrl, network, senderAddress]);

useEffect(() => {
Expand Down

0 comments on commit 3cc024a

Please sign in to comment.