Skip to content

Commit

Permalink
Merge pull request #1005 from multiversx/development
Browse files Browse the repository at this point in the history
2.26.3
  • Loading branch information
mgavrila committed Jan 3, 2024
2 parents e0d040f + bf2b863 commit 8f08938
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[v2.26.3]](https://github.com/multiversx/mx-sdk-dapp/pull/1005)] - 2024-01-03
- [Fix logout issue with web-wallet](https://github.com/multiversx/mx-sdk-dapp/pull/1004)

## [[v2.26.2]](https://github.com/multiversx/mx-sdk-dapp/pull/1003)] - 2023-12-21

- [Adds custom message request capability to webview provider](https://github.com/multiversx/mx-sdk-dapp/pull/1002)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-dapp",
"version": "2.26.2",
"version": "2.26.3",
"description": "A library to hold the main logic for a dapp on the MultiversX blockchain",
"author": "MultiversX",
"license": "GPL-3.0-or-later",
Expand Down
8 changes: 8 additions & 0 deletions src/utils/logout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ export async function logout(

try {
store.dispatch(logoutAction());

if (providerType === LoginMethodsEnum.wallet) {
// Allow redux store cleanup before redirect to web wallet
return setTimeout(() => {
provider.logout({ callbackUrl: url });
});
}

await provider.logout({ callbackUrl: url });
} catch (err) {
console.error('error logging out', err);
Expand Down

0 comments on commit 8f08938

Please sign in to comment.