Commit 55d85d26 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

feat: show Browser Wallet instead of Injected (#5531)

* feat: show Browser Wallet instead of Injected

* fix test
parent 7fb7517a
......@@ -76,7 +76,7 @@ it('loads Wallet Modal on desktop with generic Injected', async () => {
jest.spyOn(connectionUtils, 'getIsCoinbaseWallet').mockReturnValue(false)
render(<WalletModal pendingTransactions={[]} confirmedTransactions={[]} />)
expect(screen.getByText('Injected')).toBeInTheDocument()
expect(screen.getByText('Browser Wallet')).toBeInTheDocument()
expect(screen.getByText('Coinbase Wallet')).toBeInTheDocument()
expect(screen.getByText('WalletConnect')).toBeInTheDocument()
expect(screen.getAllByTestId('wallet-modal-option')).toHaveLength(3)
......
......@@ -53,7 +53,7 @@ export function getConnection(c: Connector | ConnectionType) {
export function getConnectionName(connectionType: ConnectionType, isMetaMask?: boolean) {
switch (connectionType) {
case ConnectionType.INJECTED:
return isMetaMask ? 'MetaMask' : 'Injected'
return isMetaMask ? 'MetaMask' : 'Browser Wallet'
case ConnectionType.COINBASE_WALLET:
return 'Coinbase Wallet'
case ConnectionType.WALLET_CONNECT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment