Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 17, 2024
1 parent 1dd5754 commit e9123d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/connectOverlay/ConnectOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const ConnectOverlay: React.FC<Props> = ({
const connectMetamask = async () => {
try {
const response = await axios.post(BRIDGE_URL + '/init-provider');
const providerId = response.data.providerId;
WebApp.openLink(response.data.universalLink);
close();

Expand All @@ -57,9 +58,10 @@ const ConnectOverlay: React.FC<Props> = ({
}

try {
const statusResponse = await axios.get(
const statusResponse = await axios.post(
BRIDGE_URL + '/is-connected',
{
providerId: providerId,
withCredentials: true,
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit e9123d8

Please sign in to comment.