(tenantSignTypes, signatureType)
| 3600 | |
| 3601 | // `handleSignatureType` is used to return update signature types as per tenant or user |
| 3602 | export async function handleSignatureType(tenantSignTypes, signatureType) { |
| 3603 | const docSignTypes = signatureType || signatureTypes; |
| 3604 | let updatedSignatureType = signatureType || signatureTypes; |
| 3605 | if (tenantSignTypes?.length > 0) { |
| 3606 | updatedSignatureType = tenantSignTypes?.map((item) => { |
| 3607 | const match = docSignTypes.find((data) => data.name === item.name); |
| 3608 | return match ? { ...item, enabled: match.enabled } : item; |
| 3609 | }); |
| 3610 | } |
| 3611 | return updatedSignatureType; |
| 3612 | } |
| 3613 | |
| 3614 | // `formatDateToDdMmmYyyy` is used to format date to dd-mmm-yyyy |
| 3615 | export const formatDateToDdMmmYyyy = (date) => { |
no outgoing calls
no test coverage detected