mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
99: added error toast to useNodeFormFormik.ts
This commit is contained in:
parent
6964324ffb
commit
2bea3faf5e
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ import { useCallback, useRef } from 'react';
|
|||
import { FormikConfig, FormikHelpers, useFormik, useFormikContext } from 'formik';
|
||||
import { object } from 'yup';
|
||||
import { keys } from 'ramda';
|
||||
import { showErrorToast } from '~/utils/errors/showToast';
|
||||
|
||||
const validationSchema = object().shape({});
|
||||
|
||||
|
@ -15,6 +16,7 @@ const afterSubmit = ({ resetForm, setStatus, setSubmitting, setErrors }: FormikH
|
|||
|
||||
if (e) {
|
||||
setStatus(e);
|
||||
showErrorToast(e);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue