Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
PijusSerapinasMipsas committed Jul 14, 2023
1 parent 5946613 commit 863476d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/renderer/components/SideNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ export const SideNavbar = () => {
useEffect(() => {
const load = async () => {
const login = localStorage.getItem('SNProfileID')
console.log('login debug', login)
if (login) {
const user = (await AccountService.getAccount(login)) as any
console.log('login debug 2', user)
const ringItem = user.keyring[0]
setLogin(user.nickname)
setMyChannelLink(`${ringItem.type}:${ringItem.username}`)
Expand All @@ -44,7 +42,6 @@ export const SideNavbar = () => {
const user = await AccountService.logout(profileID)
const accountsInit = (await AccountService.getAccounts()) as any
localStorage.removeItem('SNProfileID')
console.log(accountsInit)
if (accountsInit.length > 0) {
localStorage.setItem('SNProfileID', accountsInit[0]._id)
}
Expand Down

0 comments on commit 863476d

Please sign in to comment.