Skip to content

Commit

Permalink
close wallet logged in modal when profile picture modal opens
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Sep 25, 2024
1 parent de82154 commit 79d65b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/stateful/components/wallet/WalletUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const WalletUi = (props: WalletModalProps) => {
{showWalletConnectQr ? (
<WalletUiConnectQr walletRepo={walletRepo} />
) : isWalletConnected ? (
<WalletUiConnected walletRepo={walletRepo} />
<WalletUiConnected {...props} />
) : (
<WalletUiWalletList
connect={async (wallet) => {
Expand Down
8 changes: 6 additions & 2 deletions packages/stateful/components/wallet/WalletUiConnected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const keplrExtensionWallet = keplrExtensionWallets[0]

export const WalletUiConnected = ({
walletRepo,
}: Pick<WalletModalProps, 'walletRepo'>) => {
setOpen,
}: WalletModalProps) => {
const { t } = useTranslation()

const {
Expand Down Expand Up @@ -55,7 +56,10 @@ export const WalletUiConnected = ({
<ProfileImage
imageUrl={profile.loading ? undefined : profile.data.imageUrl}
loading={profile.loading}
onClick={() => setUpdateProfileNftVisible(true)}
onClick={() => {
setOpen(false)
setUpdateProfileNftVisible(true)
}}
size="lg"
/>
<Tooltip
Expand Down

0 comments on commit 79d65b7

Please sign in to comment.