Skip to content

Commit

Permalink
Fix invalid address on network change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Molchanov committed Jun 24, 2022
1 parent 46989cf commit 0b76405
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Components/Pages/TransferPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,12 @@ type PreflightDetails = {

const TransferPage = () => {
const classes = useStyles();
const { walletType, setWalletType, handleSetHomeChain } = useNetworkManager();
const {
walletType,
setWalletType,
handleSetHomeChain,
setAddress,
} = useNetworkManager();
const destinationBridge = useDestinationBridge();

const {
Expand Down Expand Up @@ -595,6 +600,7 @@ const TransferPage = () => {
disconnect(),
]);
setWalletType("unset");
setAddress(undefined);
}}
>
Change
Expand Down

0 comments on commit 0b76405

Please sign in to comment.