Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Aug 14, 2024
1 parent 6874ac2 commit e262968
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/internal/svg/fundWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export const FundWalletSvg = (
<svg
role="img"
aria-label="fund-wallet-svg"
width="16"
height="16"
viewBox="0 0 16 16"
width="100%"
height="100%"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
4 changes: 2 additions & 2 deletions src/wallet/components/WalletDropdownFundLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('WalletDropdownFundLink', () => {
// Check if window.open was called with the correct arguments
expect(mockOpen).toHaveBeenCalledWith(
expect.stringContaining('http://keys.coinbase.com/fund'),
'Coinbase Fund Wallet',
undefined,
expect.stringContaining(
'width=297,height=371,resizable,scrollbars=yes,status=1,left=364,top=199',
),
Expand Down Expand Up @@ -105,7 +105,7 @@ describe('WalletDropdownFundLink', () => {
const expectedTop = Math.round((screenHeight - adjustedHeight) / 2);
expect(mockOpen).toHaveBeenCalledWith(
expect.stringContaining('http://keys.coinbase.com/fund'),
'Coinbase Fund Wallet',
undefined,
expect.stringContaining(
`width=${expectedWidth},height=${adjustedHeight},resizable,scrollbars=yes,status=1,left=${expectedLeft},top=${expectedTop}`,
),
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/components/WalletDropdownFundLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function WalletDropdownFundLink({
const windowFeatures =
popupFeatures ||
`width=${width},height=${height},resizable,scrollbars=yes,status=1,left=${left},top=${top}`;
window.open(fundingUrl, 'Coinbase Fund Wallet', windowFeatures);
window.open(fundingUrl, target, windowFeatures);
};

const overrideClassName = cn(
Expand Down

0 comments on commit e262968

Please sign in to comment.