mirror of
https://github.com/bitwarden/browser
synced 2026-02-09 05:00:10 +00:00
Only set cached provider type if switch is successful
This commit is contained in:
@@ -342,13 +342,6 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
|
||||
};
|
||||
|
||||
async selectOtherTwoFactorMethod() {
|
||||
// Cache current form data before navigating to another method
|
||||
this.twoFactorAuthComponentCacheService.cacheData({
|
||||
token: "",
|
||||
remember: false,
|
||||
selectedProviderType: this.selectedProviderType,
|
||||
});
|
||||
|
||||
const dialogRef = TwoFactorOptionsComponent.open(this.dialogService);
|
||||
const response: TwoFactorOptionsDialogResult | string | undefined = await lastValueFrom(
|
||||
dialogRef.closed,
|
||||
|
||||
Reference in New Issue
Block a user