Skip to content

Commit

Permalink
fix convert screen provider issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fullstackninja864 committed Oct 12, 2023
1 parent 58b999c commit 3ae5b6b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
import { useNetworkContext } from "@waveshq/walletkit-ui";
import { NetworkName } from "@defichain/jellyfish-network";
import { providers } from "ethers";
import { useEVMProvider } from "@contexts/EVMProvider";
import { PortfolioParamList } from "../PortfolioNavigator";

type Props = StackScreenProps<PortfolioParamList, "ConvertConfirmationScreen">;
Expand All @@ -49,6 +50,7 @@ export function ConvertConfirmationScreen({ route }: Props): JSX.Element {
} = route.params;
const { networkName } = useNetworkContext();
const { address } = useWalletContext();
const { provider } = useEVMProvider();
const addressLabel = useAddressLabel(address);
const hasPendingJob = useSelector((state: RootState) =>
hasTxQueued(state.transactionQueue),
Expand Down Expand Up @@ -128,6 +130,7 @@ export function ConvertConfirmationScreen({ route }: Props): JSX.Element {
sourceToken,
targetToken,
networkName,
provider,
},
dispatch,
() => {
Expand Down

0 comments on commit 3ae5b6b

Please sign in to comment.