Advertisement
Eulis

teste business sector

May 20th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. const initialSelectedValue = (saveValue, saveLabel) => {
  2. console.log('entrou');
  3. if (saveLabel !== '') {
  4. formik.setFieldValue('employmentArea', saveValue);
  5. saveLabel = saveLabel.replace(/\s|\/|-/g, '_');
  6. let a = [];
  7. console.log(saveLabel);
  8. console.log(aux);
  9. console.log(aux2);
  10. if (i18n.language === 'pt') {
  11. a = aux[saveLabel];
  12. } else {
  13. a = aux2[saveLabel];
  14. }
  15. setOption(a);
  16. }
  17. };
  18. setSaveValue(value);
  19. setSaveLabel(label);
  20. const [saveValue, setSaveValue] = useState('');
  21. const [saveLabel, setSaveLabel] = useState('');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement