fix sortUriMatch

This commit is contained in:
Kyle Spearrin 2017-11-23 10:37:14 -05:00
parent 56c1ca7d2f
commit ed28816b99
1 changed files with 1 additions and 1 deletions

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