Skip to content

Commit

Permalink
Tx history change wallet fix (wormhole-foundation#2625)
Browse files Browse the repository at this point in the history
* Fix invalid DOM property `stroke-linejoin`.

* Fix wallets not loading after returning from "Transaction history" page

Fixes wormhole-foundation#2622

* added todo
  • Loading branch information
kev1n-peters authored Sep 17, 2024
1 parent 3a9847e commit 5085808
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 2 additions & 3 deletions wormhole-connect/src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import Terms from './views/Terms';
import TxSearch from './views/TxSearch';
import { setRoute } from './store/router';
import { clearWallets } from './store/wallet';
import { clearPorticoBridge } from 'store/porticoBridge';
import { useExternalSearch } from 'hooks/useExternalSearch';

import BridgeV2 from 'views/v2/Bridge';
Expand Down Expand Up @@ -80,9 +79,9 @@ function AppRouter(props: Props) {
config.whLegacy.registerProviders(); // reset providers that may have been set during transfer
}
// reset transfer state on leave
if (route === bridgeRoute && prevRoute !== bridgeRoute) {
const isEnteringBridge = route === bridgeRoute && prevRoute !== bridgeRoute;
if (isEnteringBridge && prevRoute !== 'history') {
dispatch(clearTransfer());
dispatch(clearPorticoBridge());
}
}, [route, prevRoute, dispatch]);

Expand Down
12 changes: 6 additions & 6 deletions wormhole-connect/src/icons/Tokens/ETH.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,37 @@ function ETH() {
d="M90.9,181v-45.2l-55.9-32.7,55.9,77.8Z"
fill="#f0cdc2"
stroke="#1616b4"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M91.1,181v-45.2l55.9-32.7-55.9,77.8Z"
fill="#c9b3f5"
stroke="#1616b4"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M90.9,124.6v-57.6l-56.5,25.3,56.5,32.3Z"
fill="#88aaf1"
stroke="#1616b4"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M91.1,124.6v-57.6l56.5,25.3-56.5,32.3Z"
fill="#c9b3f5"
stroke="#1616b4"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M34.4,92.3L90.9,1v66l-56.5,25.3Z"
fill="#f0cdc2"
stroke="#1616b4"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M147.6,92.3L91.1,1v66l56.5,25.3Z"
fill="#b8faf6"
stroke="#1616b4"
stroke-linejoin="round"
strokeLinejoin="round"
/>
</g>
</g>
Expand Down
1 change: 1 addition & 0 deletions wormhole-connect/src/store/porticoBridge.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO: SDKV2 remove this file
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import {
DataWrapper,
Expand Down

0 comments on commit 5085808

Please sign in to comment.