Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7334 Rev 7368
Línea 57... Línea 57...
57
  const handleLogout = (e) => {
57
  const handleLogout = (e) => {
58
    e.preventDefault()
58
    e.preventDefault()
59
    axios
59
    axios
60
      .get('/signout')
60
      .get('/signout')
61
      .then((response) => {
61
      .then((response) => {
-
 
62
        const { success } = response.data
62
        if (response.status === 302) {
63
        if (!success) {
63
          dispatch(logout())
64
          dispatch(
-
 
65
            addNotification({
-
 
66
              style: 'danger',
-
 
67
              msg: 'Error interno. Intente más tarde.',
-
 
68
            })
-
 
69
          )
64
        }
70
        }
-
 
71
        dispatch(logout())
65
      })
72
      })
66
      .catch((err) => {
73
      .catch((err) => {
67
        dispatch(
74
        dispatch(
68
          addNotification({
75
          addNotification({
69
            style: 'danger',
76
            style: 'danger',