Adjust segmented TOTP fields check

This commit is contained in:
varjolintu 2023-11-20 19:57:01 +02:00
parent 82261569e9
commit d5bb998553

View file

@ -301,7 +301,9 @@ kpxcFields.getElementFromXPathId = function(xpath) {
kpxcFields.handleSegmentedTOTPFields = function(inputs, combinations) {
// Check for multiple segmented TOTP fields when there are no inputs, or combination contains the segemented fields
const segmentedFields = combinations.filter(c => c.totp);
if (combinations.length === 0 || segmentedFields.length === DEFAULT_SEGMENTED_TOTP_FIELDS) {
if (combinations.length === 0
|| segmentedFields.length === DEFAULT_SEGMENTED_TOTP_FIELDS
|| inputs?.length === DEFAULT_SEGMENTED_TOTP_FIELDS) {
kpxcFields.getSegmentedTOTPFields(inputs, combinations);
}