Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3267 Rev 3396
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
      const response = await dispatch(asyncLogout())
-
 
67
      window.localStorage.removeItem('jwt')
66
      const response = await dispatch(asyncLogout())
68
      window.localStorage.removeItem('is_logged_in')
67
      dispatch(addNotification({ style: 'success', msg: response.message }))
69
      dispatch(addNotification({ style: 'success', msg: response.message }))
68
    } catch (error) {
70
    } catch (error) {
69
      dispatch(addNotification({ style: 'danger', msg: error.message }))
71
      dispatch(addNotification({ style: 'danger', msg: error.message }))
70
    }
72
    }