Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3406 Rev 3408
Línea 61... Línea 61...
61
  }
61
  }
Línea 62... Línea 62...
62
 
62
 
63
  const handleLogout = async (e) => {
63
  const handleLogout = async (e) => {
64
    e.preventDefault()
64
    e.preventDefault()
65
    try {
65
    try {
-
 
66
      await dispatch(asyncLogout())
66
      const response = await dispatch(asyncLogout())
67
      dispatch(
-
 
68
        addNotification({ style: 'success', msg: 'Ha finalizado su sesión' })
67
      dispatch(addNotification({ style: 'success', msg: response.message }))
69
      )
68
    } catch (error) {
70
    } catch (error) {
69
      dispatch(addNotification({ style: 'danger', msg: error.message }))
71
      dispatch(addNotification({ style: 'danger', msg: error.message }))
70
    }
72
    }