1
0
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:
✨ Audrey ✨ 2024-10-18 13:16:48 -04:00
parent 2ecef518d8
commit 4036480835
No known key found for this signature in database
GPG Key ID: 0CF8B4C0D9088B97

View File

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