Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 6, 2024
1 parent 652000d commit faa707e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/src/components/Shared/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ const Login: FC<LoginProps> = ({ setHasAccounts }) => {
const lastLogin = accountsAvailable?.lastLoggedInAccount;

const remainingProfiles = lastLogin
? allProfiles.filter(({ account }) => account.address !== lastLogin.address)
: allProfiles;
? allProfiles
.filter(({ account }) => account.address !== lastLogin.address)
.map(({ account }) => account)
: allProfiles.map(({ account }) => account);

const accounts = (
lastLogin ? [lastLogin, ...remainingProfiles] : remainingProfiles
Expand Down

0 comments on commit faa707e

Please sign in to comment.