mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
fix sortUriMatch
This commit is contained in:
parent
56c1ca7d2f
commit
ed28816b99
@ -143,7 +143,7 @@ export class CurrentController {
|
||||
|
||||
private sortUriMatch(cipher: any) {
|
||||
// exact matches should sort earlier.
|
||||
return this.url && this.url.startsWith(cipher.uri) ? 0 : 1;
|
||||
return cipher.login && cipher.login.uri && this.url && this.url.startsWith(cipher.login.uri) ? 0 : 1;
|
||||
}
|
||||
|
||||
private sortLastUsed(cipher: any) {
|
||||
|
Loading…
Reference in New Issue
Block a user