Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
yanok87 committed Jan 21, 2025
1 parent d0d6e38 commit adb7e4f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions explorer-nextjs/src/components/staking/StakeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const StakeTable = ({ nodes }: { nodes: MappedNymNodes }) => {
};

const handleOnSelectStake = useCallback(
(nodeId: number, nodeIdentityKey: string) => {
(nodeId: number, nodeIdentityKey: string | undefined) => {
if (!isWalletConnected) {
setInfoModalProps({
open: true,
Expand All @@ -161,10 +161,11 @@ const StakeTable = ({ nodes }: { nodes: MappedNymNodes }) => {
});
return;
}
setSelectedNodeForStaking({
nodeId: nodeId,
identityKey: nodeIdentityKey,
});
nodeIdentityKey &&
setSelectedNodeForStaking({
nodeId: nodeId,
identityKey: nodeIdentityKey,
});
},
[isWalletConnected],
);
Expand Down Expand Up @@ -213,7 +214,7 @@ const StakeTable = ({ nodes }: { nodes: MappedNymNodes }) => {
(action: string, nodeId: number, nodeIdentityKey: string | undefined) => {
switch (action) {
case "stake":
nodeIdentityKey && handleOnSelectStake(nodeId, nodeIdentityKey);
handleOnSelectStake(nodeId, nodeIdentityKey);
break;
case "unstake":
handleUnstake(nodeId);
Expand Down

0 comments on commit adb7e4f

Please sign in to comment.