Skip to content

Commit

Permalink
Password Item sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
cvs0 committed Feb 7, 2025
1 parent 06afd41 commit 9698848
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/vault/vault-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,12 @@ export const VaultPage: React.FC<VaultPageProps> = ({ user }) => {
);

setPasswords(
decryptedPasswords.filter(
(item): item is PasswordEntry => item !== null
)
decryptedPasswords
.filter((item): item is PasswordEntry => item !== null)
.sort(
(a, b) =>
new Date(b.created).getTime() - new Date(a.created).getTime()
)
);
};

Expand Down

0 comments on commit 9698848

Please sign in to comment.