Skip to content

Commit

Permalink
remove SNProfileID if no accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
igormuba committed Aug 11, 2023
1 parent 1965640 commit a649180
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/views/Accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export function AccountsView() {

if (accountsInit.length > 0) {
localStorage.setItem('SNProfileID', accountsInit[0]._id)
} else {
localStorage.removeItem('SNProfileID')
}
window.location.reload()
}
Expand Down

0 comments on commit a649180

Please sign in to comment.