Skip to content

Commit

Permalink
Merge pull request #3745 from Expensify/ionatan_last4ssn
Browse files Browse the repository at this point in the history
Only ask for last 4 digits of SSN
  • Loading branch information
Clement DAL PALU authored Jun 25, 2021
2 parents 3a77c3a + 5fb78a0 commit fffa33b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
invite: 'Invite',
here: 'here',
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',
Expand Down Expand Up @@ -382,7 +382,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.',
},
Expand Down
3 changes: 1 addition & 2 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
invite: 'Invitación',
here: 'aquí',
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',
Expand Down Expand Up @@ -407,7 +407,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',
},
Expand Down
6 changes: 5 additions & 1 deletion src/pages/EnablePayments/AdditionalDetailsStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
];

Expand Down Expand Up @@ -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'])}
/>
))}
</ScrollView>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/IdentityForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const IdentityForm = ({
onChangeText={val => onFieldChange('dob', val)}
/>
<TextInputWithLabel
label={`${translate('requestorStep.ssnLast4')}`}
label={`${translate('common.ssnLast4')}`}
containerStyles={[styles.mt4]}
value={ssnLast4}
onChangeText={val => onFieldChange('ssnLast4', val)}
Expand Down

0 comments on commit fffa33b

Please sign in to comment.