1
0
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:
Alec Rippberger
2025-04-24 15:08:31 -05:00
parent b4d2cd974d
commit 6a7de6a0d3

View File

@@ -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,