Skip to content

Commit

Permalink
Fix accounts[0] and Delete Account
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Nov 14, 2023
1 parent cdc30e9 commit 8ad16d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/common/WalletInfo/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('WalletInfo', () => {
/>,
)

expect(queryByText('Delete Account')).not.toBeInTheDocument()
expect(queryByText('Delete account')).not.toBeInTheDocument()
})

it('should not display a Delete Account if not social login', () => {
Expand All @@ -140,7 +140,7 @@ describe('WalletInfo', () => {
/>,
)

expect(queryByText('Delete Account')).not.toBeInTheDocument()
expect(queryByText('Delete account')).not.toBeInTheDocument()
})

it('should display an enable mfa button if mfa is not enabled', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/wallets/useOnboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getConnectedWallet = (wallets: WalletState[]): ConnectedWallet | nu
const primaryWallet = wallets[0]
if (!primaryWallet) return null

const account = primaryWallet.accounts[primaryWallet.accounts.length - 1]
const account = primaryWallet.accounts[0]
if (!account) return null

try {
Expand Down

0 comments on commit 8ad16d2

Please sign in to comment.