We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 479ea50 commit 0d5fd00Copy full SHA for 0d5fd00
client/src/components/Header/header.js
@@ -20,7 +20,9 @@ const Header = () => {
20
<Link to="/dashboard">Dashboard</Link>
21
</li>
22
<li className="navbar__item navbar__item--right">
23
- <button onClick={onLogout}>Logout</button>
+ <button type="button" onClick={onLogout}>
24
+ Logout
25
+ </button>
26
27
</Fragment>
28
) : (
client/src/providers/authProvider.js
@@ -36,9 +36,12 @@ const EVENTS = {
36
error
37
};
38
},
39
- [EVENT_TYPES.LOGOUT]: state => {
+ [EVENT_TYPES.LOGOUT]: () => {
40
return {
41
- ...state,
+ name: '',
42
+ email: '',
43
+ password: '',
44
+ error: '',
45
isLoggedIn: false
46
47
0 commit comments