diff --git a/utils/gear-hooks/package.json b/utils/gear-hooks/package.json index 395c9a310d..f43930da08 100644 --- a/utils/gear-hooks/package.json +++ b/utils/gear-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@gear-js/react-hooks", - "version": "0.14.0", + "version": "0.14.1", "description": "React hooks used across Gear applications", "author": "Gear Technologies", "license": "GPL-3.0", diff --git a/utils/gear-hooks/src/context/account/provider.tsx b/utils/gear-hooks/src/context/account/provider.tsx index 0918daf250..672cd8f866 100644 --- a/utils/gear-hooks/src/context/account/provider.tsx +++ b/utils/gear-hooks/src/context/account/provider.tsx @@ -56,7 +56,7 @@ function AccountProvider({ appName, children }: Props) { ); setAccount((prevAccount) => { - if (!prevAccount || id !== prevAccount.meta.source) return; + if (!prevAccount || id !== prevAccount.meta.source) return prevAccount; const isLoggedIn = Boolean(accounts.length) && accounts.some(({ address }) => address === prevAccount.address); diff --git a/utils/wallet-connect/package.json b/utils/wallet-connect/package.json index 610baa61a0..f50ed64ccf 100644 --- a/utils/wallet-connect/package.json +++ b/utils/wallet-connect/package.json @@ -1,6 +1,6 @@ { "name": "@gear-js/wallet-connect", - "version": "0.2.0", + "version": "0.2.1", "type": "module", "description": "React library to connect Substrate based wallets to Gear dApps", "author": "Gear Technologies", @@ -24,7 +24,7 @@ "preview": "vite preview" }, "peerDependencies": { - "@gear-js/react-hooks": "^0.14.0", + "@gear-js/react-hooks": "^0.14.1", "@gear-js/ui": "^0.5.28", "@gear-js/vara-ui": "^0.0.11" }, @@ -37,7 +37,7 @@ } }, "devDependencies": { - "@gear-js/react-hooks": "0.14.0", + "@gear-js/react-hooks": "0.14.1", "@gear-js/ui": "0.5.28", "@gear-js/vara-ui": "0.0.11", "@polkadot/react-identicon": "3.11.3", diff --git a/yarn.lock b/yarn.lock index 878f2a587c..c1398dc25b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2691,7 +2691,7 @@ __metadata: languageName: unknown linkType: soft -"@gear-js/react-hooks@0.14.0, @gear-js/react-hooks@workspace:^, @gear-js/react-hooks@workspace:utils/gear-hooks": +"@gear-js/react-hooks@0.14.1, @gear-js/react-hooks@workspace:^, @gear-js/react-hooks@workspace:utils/gear-hooks": version: 0.0.0-use.local resolution: "@gear-js/react-hooks@workspace:utils/gear-hooks" dependencies: @@ -2838,7 +2838,7 @@ __metadata: version: 0.0.0-use.local resolution: "@gear-js/wallet-connect@workspace:utils/wallet-connect" dependencies: - "@gear-js/react-hooks": 0.14.0 + "@gear-js/react-hooks": 0.14.1 "@gear-js/ui": 0.5.28 "@gear-js/vara-ui": 0.0.11 "@polkadot/react-identicon": 3.11.3 @@ -2859,7 +2859,7 @@ __metadata: vite-plugin-node-polyfills: 0.22.0 vite-plugin-svgr: 3.2.0 peerDependencies: - "@gear-js/react-hooks": ^0.14.0 + "@gear-js/react-hooks": ^0.14.1 "@gear-js/ui": ^0.5.28 "@gear-js/vara-ui": ^0.0.11 peerDependenciesMeta: