Skip to content

Commit

Permalink
close overlay on connect
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 16, 2024
1 parent 9923acf commit 1ff8e37
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/connectOverlay/ConnectOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ const ConnectOverlay: React.FC<Props> = ({ close, slideAnimation }) => {
// connect function
const connectMetamask = () => {
axios.post(BRIDGE_URL + '/connect').then((response) => {
// Set uri with response data
console.log(response.data);
WebApp.openLink(response.data.universalLink);
try {
WebApp.openLink(response.data.universalLink);
close();
} catch (error) {
console.error(error);
}
});
};

Expand Down

0 comments on commit 1ff8e37

Please sign in to comment.