Skip to content

Commit

Permalink
Merge branch 'unified-login' of github.com:MetaMask/metamask-docs int…
Browse files Browse the repository at this point in the history
…o unified-login
  • Loading branch information
cedricmagne committed Sep 18, 2024
2 parents 2b2a420 + 8c4ac1f commit 8e5c348
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/ParserOpenRPC/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default function ParserOpenRPC({ network, method, extraContent }: ParserP
const [isDrawerContentFixed, setIsDrawerContentFixed] = useState(false);
const [drawerLabel, setDrawerLabel] = useState(null);
const [isComplexTypeView, setIsComplexTypeView] = useState(false);
const { metaMaskAccount, metaMaskConnectHandler } = useContext(MetamaskProviderContext);
const { metaMaskAccount, metaMaskProvider, metaMaskConnectHandler } =
useContext(MetamaskProviderContext);
const { colorMode } = useColorMode();
const openModal = () => {
setModalOpen(true);
Expand Down Expand Up @@ -142,9 +143,9 @@ export default function ParserOpenRPC({ network, method, extraContent }: ParserP
};

const onSubmitRequestHandle = async () => {
if (!provider) return;
if (!metaMaskProvider) return;
try {
const response = await provider?.request({
const response = await metaMaskProvider?.request({
method: method,
params: paramsData,
});
Expand Down

0 comments on commit 8e5c348

Please sign in to comment.