mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
bug fix + added launch time to view component (#178)
This commit is contained in:
@@ -57,7 +57,8 @@ class Ciphers {
|
||||
}
|
||||
|
||||
getLastLaunched() {
|
||||
const sortedCiphers = this.ciphers.sort((x, y) => y.localData?.lastLaunched?.valueOf() - x.localData?.lastLaunched?.valueOf());
|
||||
const usedCiphers = this.ciphers.filter(cipher => cipher.localData?.lastLaunched)
|
||||
const sortedCiphers = usedCiphers.sort((x, y) => y.localData.lastLaunched.valueOf() - x.localData.lastLaunched.valueOf());
|
||||
return sortedCiphers[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user