Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Oct 18, 2023
1 parent 6c6f3d4 commit 797a25a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { logout } from './logout'
import { subscribeToWalletApiEventsForActiveProfile } from './subscribeToWalletApiEventsForActiveProfile'
import { checkAndUpdateActiveProfileNetwork } from './checkAndUpdateActiveProfileNetwork'
import { checkAndRemoveProfilePicture } from './checkAndRemoveProfilePicture'
import { addError } from '@core/error'

export async function login(loginOptions?: ILoginOptions): Promise<void> {
const loginRouter = get(routerManager).getRouterForAppContext(AppContext.Login)
Expand Down Expand Up @@ -87,6 +88,11 @@ export async function login(loginOptions?: ILoginOptions): Promise<void> {
} else {
accounts = await getAccounts()
}

addError({
message: `User has >${accounts.length}< accounts\nLogin options >${JSON.stringify(loginOptions)}<`,
})

/**
* NOTE: In the case no accounts with funds were recovered, we must
* create one for the new profile.
Expand Down

0 comments on commit 797a25a

Please sign in to comment.