diff --git a/apps/app/src/components/Vault/VaultPageButtons.tsx b/apps/app/src/components/Vault/VaultPageButtons.tsx index 60d69868..6b949d83 100644 --- a/apps/app/src/components/Vault/VaultPageButtons.tsx +++ b/apps/app/src/components/Vault/VaultPageButtons.tsx @@ -3,6 +3,7 @@ import { DelegateButton, DepositButton, WithdrawButton } from '@shared/react-com import classNames from 'classnames' import * as fathom from 'fathom-client' import { useTranslations } from 'next-intl' +import { useAccount } from 'wagmi' import { FATHOM_EVENTS } from '@constants/config' interface VaultPageButtonsProps { @@ -16,6 +17,8 @@ export const VaultPageButtons = (props: VaultPageButtonsProps) => { const t_common = useTranslations('Common') const t_tooltips = useTranslations('Tooltips') + const { address: userAddress } = useAccount() + return (
{ > {t_common('withdraw')} - fathom.trackEvent(FATHOM_EVENTS.openedDelegateModal)} - color='transparent' - > - {t_common('delegate')} - + {!!userAddress && ( + fathom.trackEvent(FATHOM_EVENTS.openedDelegateModal)} + color='transparent' + > + {t_common('delegate')} + + )}
) }