Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 18, 2024
1 parent 4e36ab9 commit 15f4067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/connectOverlay/ConnectOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ const ConnectOverlay: React.FC<Props> = ({
try {
const response = await axios.post(BRIDGE_URL + '/init-provider');
const providerId = response.data.providerId;
WebApp.openLink(response.data.universalLink);
close();

const startTime = Date.now(); // Record start time
const timeout = 30000; // 30 seconds timeout

// Function to check connection status
const checkConnection = async () => {
WebApp.openLink(response.data.universalLink);
if (Date.now() - startTime > timeout) {
return;
}
Expand Down

0 comments on commit 15f4067

Please sign in to comment.