Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3270 | Rev 3374 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3270 Rev 3371
Línea 28... Línea 28...
28
  }))
28
  }))
Línea 29... Línea 29...
29
 
29
 
30
  const onSubmit = async (goal) => {
30
  const onSubmit = async (goal) => {
31
    try {
31
    try {
32
      const response = await editGoal(currentGoal?.actions.link_edit, goal)
-
 
33
      dispatch(addNotification({ style: 'success', msg: response.message }))
32
      const response = await editGoal(currentGoal?.actions.link_edit, goal)
-
 
33
      updateGoal(response.data)
34
      updateGoal(response.data)
34
      dispatch(addNotification({ style: 'success', msg: response.message }))
35
      navigate('/habits/goals')
35
      navigate('/habits/goals')
36
    } catch (error) {
36
    } catch (error) {
37
      dispatch(addNotification({ style: 'danger', msg: error.message }))
37
      dispatch(addNotification({ style: 'danger', msg: error.message }))
38
    }
38
    }