Skip to content

Commit

Permalink
Fixed an issue where the auth.user object was defined even when the…
Browse files Browse the repository at this point in the history
… user was not logged in.
  • Loading branch information
wpdas committed Apr 18, 2023
1 parent 4c7804f commit f85963a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "near-social-bridge",
"version": "1.3.4",
"version": "1.3.5",
"description": "This library allows you to create a common application using ReactJS and inject it in a controlled way into a Widget on Near Social. Therefore, the Widget talks to the React application and vice versa, making it possible to consume Discovery API resources within the React application.",
"main": "./dist/cjs/index.js",
"module": "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/auth/contexts/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children }) =>
const onConnectHandler = () => {
// Set the initial user info
const preUserInfo = getConnectionPayload().userInfo
if (preUserInfo) {
if (preUserInfo?.accountId) {
setUser(preUserInfo)
}

Expand Down

0 comments on commit f85963a

Please sign in to comment.