Skip to content

Commit

Permalink
Merge pull request #1009 from multiversx/development
Browse files Browse the repository at this point in the history
Fixed provider initialised check (#1008)
  • Loading branch information
razvantomegea authored Jan 4, 2024
2 parents 4fc8b69 + 1518575 commit fd1ff0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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.5]](https://github.com/multiversx/mx-sdk-dapp/pull/1009)] - 2024-01-04
- [Fixed provider initialised check](https://github.com/multiversx/mx-sdk-dapp/pull/1008)

## [[v2.26.4]](https://github.com/multiversx/mx-sdk-dapp/pull/1007)] - 2024-01-04
- [Prevent redirects on logout if the provider is both of wallet type and initialised](https://github.com/multiversx/mx-sdk-dapp/pull/1006)

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.4",
"version": "2.26.5",
"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
2 changes: 1 addition & 1 deletion src/utils/logout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function logout(
const provider = getAccountProvider();
const providerType = getProviderType(provider);
const isWalletProvider = providerType === LoginMethodsEnum.wallet;
const isProviderInitialised = provider?.isInitialized?.() != null;
const isProviderInitialised = provider?.isInitialized?.() === true;

if (shouldAttemptReLogin && provider?.relogin != null) {
return provider.relogin();
Expand Down

0 comments on commit fd1ff0b

Please sign in to comment.