We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da11635 commit dc46141Copy full SHA for dc46141
src/modules/auth/registerDevice.ts
@@ -26,10 +26,11 @@ export const registerDevice = async (params: RegisterDevice) => {
26
throw new Error('Master password-less is currently not supported');
27
}
28
29
- const nonEmptyVerifications = verifications.filter((method) => method.type);
30
-
+ // Remove empty verification type
31
// Remove dashlane_authenticator from the list of verification methods as it is a deprecated method
32
- nonEmptyVerifications.filter((method) => method.type !== 'dashlane_authenticator');
+ const nonEmptyVerifications = verifications.filter(
+ (method) => method.type && method.type !== 'dashlane_authenticator'
33
+ );
34
35
const selectedVerificationMethod =
36
nonEmptyVerifications.length > 1
0 commit comments