Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleBlur = () => {
- const { setFieldValue, values } = this.props.formik;
- const { dailyInt, totalInt } = values.limits;
- if (dailyInt === '' && totalInt === '') {
- setFieldValue(dailyInt, '');
- setFieldValue(totalInt, '');
- } else if (dailyInt === '') {
- setFieldValue(dailyInt, '');
- } else if (totalInt === '') {
- setFieldValue(totalInt, '');
- } else {
- setFieldValue('dailyInt', dailyInt);
- setFieldValue('totalInt', totalInt);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement