Skip to content

Commit

Permalink
chore: rename function and remove unnecessary type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Sep 8, 2024
1 parent 174e174 commit dfe9156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function ConfigurePayee ({ address, setRefresh, setShow, show }:
const theme = useTheme();
const { api, chain, decimal, token } = useInfo(address);

const stakingConsts = useStakingConsts(address as string);
const stakingConsts = useStakingConsts(address);
const stakingAccount = useStakingAccount(address, undefined, undefined, undefined, true);

const [rewardDestinationValue, setRewardDestinationValue] = useState<string>();
Expand Down
4 changes: 2 additions & 2 deletions packages/extension-polkagate/src/partials/AccountMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function AccountMenu ({ address, isMenuOpen, noMargin, setShowMenu }: Props): Re
onAction(`/forget/${address}/${account?.isExternal}`);
}, [address, account, onAction]);

const goToDeriveAcc = useCallback(() => {
const onDeriveAccount = useCallback(() => {
address && onAction(`/derive/${address}/locked`);
}, [address, onAction]);

Expand Down Expand Up @@ -151,7 +151,7 @@ function AccountMenu ({ address, isMenuOpen, noMargin, setShowMenu }: Props): Re
iconComponent={
<VaadinIcon icon='vaadin:road-branch' style={vaadinIconStyle} />
}
onClick={goToDeriveAcc}
onClick={onDeriveAccount}
text={t('Derive new account')}
withHoverEffect
/>
Expand Down

0 comments on commit dfe9156

Please sign in to comment.