1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-01 04:37:40 +02:00

fix sortUriMatch

This commit is contained in:
Kyle Spearrin 2017-11-23 10:37:14 -05:00
parent 56c1ca7d2f
commit ed28816b99

View File

@ -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) {