Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const initialSelectedValue = (saveValue, saveLabel) => {
- console.log('entrou');
- if (saveLabel !== '') {
- formik.setFieldValue('employmentArea', saveValue);
- saveLabel = saveLabel.replace(/\s|\/|-/g, '_');
- let a = [];
- console.log(saveLabel);
- console.log(aux);
- console.log(aux2);
- if (i18n.language === 'pt') {
- a = aux[saveLabel];
- } else {
- a = aux2[saveLabel];
- }
- setOption(a);
- }
- };
- setSaveValue(value);
- setSaveLabel(label);
- const [saveValue, setSaveValue] = useState('');
- const [saveLabel, setSaveLabel] = useState('');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement