Commit bbc64f12 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

fix: back arrow bug in wallet modal and fill tx for wallet (#2687)

* add tx to wallet connect

* remove id from env

* restore env
parent 06f5fdc6
......@@ -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 />
......
......@@ -29,7 +29,7 @@ function useMonitoringEventCallback() {
{
transactionResponse,
walletAddress,
}: { transactionResponse?: PartialTransactionResponse; walletAddress: string | undefined }
}: { transactionResponse: PartialTransactionResponse; walletAddress: string | undefined }
) {
if (!firebaseEnabled) return
......@@ -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]
)
......
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