Skip to content

Commit

Permalink
Fixed chat not loading bug when a new user tries to login (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshRajat authored May 23, 2024
1 parent d078568 commit 49222ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/AppContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const AppContextProvider = ({ children }) => {
}

if (remember) {
if (!user.readmode()) {
if (user && !user.readmode()) {
storePGPKeyForUser(user.account, user.decryptedPgpPvtKey);
}
}
Expand Down

0 comments on commit 49222ca

Please sign in to comment.