Skip to content

Commit dc46141

Browse files
committed
fix(AuthFlowMachine): add logging when transition or event on the auth machine
1 parent da11635 commit dc46141

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/modules/auth/registerDevice.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ export const registerDevice = async (params: RegisterDevice) => {
2626
throw new Error('Master password-less is currently not supported');
2727
}
2828

29-
const nonEmptyVerifications = verifications.filter((method) => method.type);
30-
29+
// Remove empty verification type
3130
// Remove dashlane_authenticator from the list of verification methods as it is a deprecated method
32-
nonEmptyVerifications.filter((method) => method.type !== 'dashlane_authenticator');
31+
const nonEmptyVerifications = verifications.filter(
32+
(method) => method.type && method.type !== 'dashlane_authenticator'
33+
);
3334

3435
const selectedVerificationMethod =
3536
nonEmptyVerifications.length > 1

0 commit comments

Comments
 (0)