From 5fb78a0991ff512a500926a982f9ca0e03e15a99 Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Thu, 24 Jun 2021 15:58:11 -0600 Subject: [PATCH] Only ask for last 4 digits of SSN --- src/languages/en.js | 3 +-- src/languages/es.js | 3 +-- src/pages/EnablePayments/AdditionalDetailsStep.js | 6 +++++- src/pages/ReimbursementAccount/IdentityForm.js | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/languages/en.js b/src/languages/en.js index 32c47d860c88..e860be1a60cf 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -37,7 +37,7 @@ export default { settings: 'Settings', termsOfService: 'Terms of Service', dob: 'Date of Birth', - ssn: 'Social Security Number', + ssnLast4: 'Last 4 Digits of SSN', addressNoPO: 'Address (no P.O. boxes)', companyAddressNoPO: 'Company Address (no P.O. boxes)', city: 'City', @@ -379,7 +379,6 @@ export default { isMyDataSafe: 'Is my data safe?', onFidoConditions: 'By continuing with the request to add this bank account, you confirm that you have read, understand and accept ', onFidoFacialScan: 'Onfido’s Facial Scan Policy and Release', - ssnLast4: 'Last 4 Digits of SSN', isControllingOfficer: 'I am authorized to use my company bank account for business spend', isControllingOfficerError: 'You must be a controlling officer with authorization to operate the business bank account.', }, diff --git a/src/languages/es.js b/src/languages/es.js index 34a573d43937..f80455941ee8 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -33,7 +33,7 @@ export default { settings: 'Configuración', termsOfService: 'Términos de servicio', dob: 'Fecha de Nacimiento', - ssn: 'Número de Seguridad Social', + ssnLast4: 'Últimos 4 dígitos de su SSN', addressNoPO: 'Dirección (sin Apartado Postal)', companyAddressNoPO: 'Dirección de la Empresa (sin Apartado Postal)', city: 'Ciudad', @@ -391,7 +391,6 @@ export default { isMyDataSafe: '¿Están seguros mis datos?', onFidoConditions: 'Al continuar con la solicitud de añadir esta cuenta bancaria, confirma que ha leído, entiende y acepta ', facialScan: 'la política de reconocimiento facial y la exención de Onfido', - ssnLast4: 'Últimos 4 dígitos de su SSN', isControllingOfficer: 'Estoy autorizado a utilizar la cuenta bancaria de mi compañía para gastos de empresa', isControllingOfficerError: 'Debe ser un oficial controlador con autorización para operar la cuenta bancaria de la compañía', }, diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index 7ce47215dc05..ae761852eb0a 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -85,8 +85,10 @@ class AdditionalDetailsStep extends React.Component { fieldName: 'dob', }, { - label: props.translate('common.ssn'), + label: props.translate('common.ssnLast4'), fieldName: 'ssn', + maxLength: 4, + keyboardType: 'number-pad', }, ]; @@ -133,6 +135,8 @@ class AdditionalDetailsStep extends React.Component { errorText={errorFields.includes(field.fieldName) ? `${field.label} ${this.requiredText}` : ''} + // eslint-disable-next-line react/jsx-props-no-spreading + {..._.omit(field, ['label', 'fieldName'])} /> ))} diff --git a/src/pages/ReimbursementAccount/IdentityForm.js b/src/pages/ReimbursementAccount/IdentityForm.js index d0506e5a06b6..ce0a0383f330 100644 --- a/src/pages/ReimbursementAccount/IdentityForm.js +++ b/src/pages/ReimbursementAccount/IdentityForm.js @@ -90,7 +90,7 @@ const IdentityForm = ({ onChangeText={val => onFieldChange('dob', val)} /> onFieldChange('ssnLast4', val)}