Skip to content

Commit

Permalink
fix browser extension signing states
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Mar 5, 2023
1 parent 5daccf8 commit 281a1ad
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### [0.8.2](https://github.com/juliancwirko/elven.js/releases/tag/v0.8.2) (2023-03-05)
- fix browser extension signing states

### [0.8.1](https://github.com/juliancwirko/elven.js/releases/tag/v0.8.1) (2023-03-02)
- minor improvements in the code and demo

Expand Down
2 changes: 1 addition & 1 deletion build/elven.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/elven.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elven.js",
"version": "0.8.1",
"version": "0.8.2",
"description": "Authenticate, sign and send transactions on the MultiversX blockchain in the browser.",
"browser": {
".": "./build/elven.js"
Expand Down
5 changes: 3 additions & 2 deletions src/auth/login-with-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ export const loginWithExtension = async (elven: any, token?: string) => {

await accountSync(elven);

EventsStore.run(EventStoreEvents.onLoggedIn);

return dappProvider;
} catch (e: any) {
console.warn(
`Something went wrong trying to synchronize the user account: ${e?.message}`
);
} finally {
EventsStore.run(EventStoreEvents.onLoggedIn);
EventsStore.run(EventStoreEvents.onLogout);
}
}
};

0 comments on commit 281a1ad

Please sign in to comment.