Skip to content

Commit

Permalink
fix: back arrow bug in wallet modal and fill tx for wallet (#2687)
Browse files Browse the repository at this point in the history
* add tx to wallet connect

* remove id from env

* restore env
  • Loading branch information
Justin Domingue authored Oct 26, 2021
1 parent 06f5fdc commit bbc64f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/WalletModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ export default function WalletModal({
<HeaderRow>
<HoverText
onClick={() => {
setWalletView(previousWalletView ?? WALLET_VIEWS.ACCOUNT)
setWalletView(
(previousWalletView === WALLET_VIEWS.LEGAL ? WALLET_VIEWS.ACCOUNT : previousWalletView) ??
WALLET_VIEWS.ACCOUNT
)
}}
>
<ArrowLeft />
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useMonitoringEventCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function useMonitoringEventCallback() {
{
transactionResponse,
walletAddress,
}: { transactionResponse?: PartialTransactionResponse; walletAddress: string | undefined }
}: { transactionResponse: PartialTransactionResponse; walletAddress: string | undefined }
) {
if (!firebaseEnabled) return

Expand Down Expand Up @@ -80,7 +80,7 @@ export function useWalletConnectMonitoringEventCallback() {

return useCallback(
(walletAddress) => {
log('WALLET_CONNECTED', { walletAddress })
log('WALLET_CONNECTED', { transactionResponse: { hash: '', r: '', s: '', v: -1 }, walletAddress })
},
[log]
)
Expand Down

2 comments on commit bbc64f1

@vercel
Copy link

@vercel vercel bot commented on bbc64f1 Oct 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

interface – ./

interface-git-main-uniswap.vercel.app
interface-uniswap.vercel.app

@vercel
Copy link

@vercel vercel bot commented on bbc64f1 Oct 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-uniswap.vercel.app
widgets-git-main-uniswap.vercel.app

Please sign in to comment.