mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-22 07:50:04 +02:00
only update forwarder preference when a forwarder is selected
This commit is contained in:
parent
2ecef518d8
commit
4036480835
@ -227,6 +227,9 @@ export class CredentialGeneratorComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// `is*Algorithm` decides `algorithm`'s type, which flows into `setPreference`
|
// `is*Algorithm` decides `algorithm`'s type, which flows into `setPreference`
|
||||||
|
if (isForwarderIntegration(algorithm) && algorithm.forwarder === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (isEmailAlgorithm(algorithm)) {
|
if (isEmailAlgorithm(algorithm)) {
|
||||||
setPreference("email");
|
setPreference("email");
|
||||||
} else if (isUsernameAlgorithm(algorithm)) {
|
} else if (isUsernameAlgorithm(algorithm)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user