[INFRA-444] | Piyush | Update auto close values for all toaster types

This commit is contained in:
Piyush Sinha
2020-07-23 11:22:51 +05:30
parent c5c9242633
commit af67a43af0

View File

@@ -148,10 +148,10 @@ const Form = (props: any) => {
.then((r) => {
r.json().then(resJson => {
if(r.ok) {
toast.update(toastId, {render: 'Updated', type: 'success'})
toast.update(toastId, {render: 'Updated', type: 'success', autoClose: 3000})
setFormInitData(resJson.manifest);
} else {
toast.update(toastId, {render: formatDisplayData({error: resJson.error, message: resJson.message}), type: 'error'})
toast.update(toastId, {render: formatDisplayData({error: resJson.error, message: resJson.message}), type: 'error', autoClose: 5000})
}
})
})