mirror of
https://github.com/bitwarden/browser
synced 2026-02-21 03:43:58 +00:00
PM-9115 - TwoFactorAuthEmail - restore provider size check
This commit is contained in:
@@ -81,7 +81,7 @@ export class TwoFactorAuthEmailComponent implements OnInit {
|
||||
|
||||
const providers = await this.twoFactorService.getProviders();
|
||||
|
||||
if (!providers) {
|
||||
if (!providers || providers.size === 0) {
|
||||
throw new Error("User has no 2FA Providers");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user