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({ ...@@ -335,7 +335,10 @@ export default function WalletModal({
<HeaderRow> <HeaderRow>
<HoverText <HoverText
onClick={() => { onClick={() => {
setWalletView(previousWalletView ?? WALLET_VIEWS.ACCOUNT) setWalletView(
(previousWalletView === WALLET_VIEWS.LEGAL ? WALLET_VIEWS.ACCOUNT : previousWalletView) ??
WALLET_VIEWS.ACCOUNT
)
}} }}
> >
<ArrowLeft /> <ArrowLeft />
......
...@@ -29,7 +29,7 @@ function useMonitoringEventCallback() { ...@@ -29,7 +29,7 @@ function useMonitoringEventCallback() {
{ {
transactionResponse, transactionResponse,
walletAddress, walletAddress,
}: { transactionResponse?: PartialTransactionResponse; walletAddress: string | undefined } }: { transactionResponse: PartialTransactionResponse; walletAddress: string | undefined }
) { ) {
if (!firebaseEnabled) return if (!firebaseEnabled) return
...@@ -80,7 +80,7 @@ export function useWalletConnectMonitoringEventCallback() { ...@@ -80,7 +80,7 @@ export function useWalletConnectMonitoringEventCallback() {
return useCallback( return useCallback(
(walletAddress) => { (walletAddress) => {
log('WALLET_CONNECTED', { walletAddress }) log('WALLET_CONNECTED', { transactionResponse: { hash: '', r: '', s: '', v: -1 }, walletAddress })
}, },
[log] [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