diff --git a/apps/trading/components/vega-wallet/vega-wallet-menu.tsx b/apps/trading/components/vega-wallet/vega-wallet-menu.tsx index 02a341980..c2ca3bd16 100644 --- a/apps/trading/components/vega-wallet/vega-wallet-menu.tsx +++ b/apps/trading/components/vega-wallet/vega-wallet-menu.tsx @@ -12,6 +12,8 @@ import CopyToClipboard from 'react-copy-to-clipboard'; import { ViewType, useSidebar } from '../sidebar'; import { useGetCurrentRouteId } from '../../lib/hooks/use-get-current-route-id'; import { useT } from '../../lib/use-t'; +import { usePartyProfilesQuery } from '../vega-wallet-connect-button/__generated__/PartyProfiles'; +import { useProfileDialogStore } from '../../stores/profile-dialog-store'; export const VegaWalletMenu = ({ setMenu, @@ -23,6 +25,11 @@ export const VegaWalletMenu = ({ const currentRouteId = useGetCurrentRouteId(); const setViews = useSidebar((store) => store.setViews); + const { data } = usePartyProfilesQuery({ + variables: { partyIds: pubKeys.map((pk) => pk.publicKey) }, + skip: pubKeys.length <= 0, + }); + const activeKey = useMemo(() => { return pubKeys?.find((pk) => pk.publicKey === pubKey); }, [pubKey, pubKeys]); @@ -37,14 +44,21 @@ export const VegaWalletMenu = ({ return (