@idscan/idvc2
Version:
component for the capturing documents
10 lines (8 loc) • 364 B
text/typescript
import type { StepType } from './stepsDescription';
import { DocumentTypeName } from './documentTypes';
export const checkIsNeedRotateCard = (stepType: StepType, documentTypeName: '' | DocumentTypeName): boolean => {
if (documentTypeName === 'Passport') {
return false;
}
return stepType !== 'face' && stepType !== 'front' && stepType !== 'barcode';
};