Skip to content

Commit c569a2c

Browse files
committed
When login reset authError to null
1 parent e759ba8 commit c569a2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/actions.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ export const login = (dispatch, ref, credentials) => {
105105

106106
const {token, provider, type} = credentials
107107

108+
dispatch({
109+
type: LOGIN_ERROR,
110+
authError: null
111+
})
112+
108113
if(provider) {
109114

110115
if(credentials.token) {

0 commit comments

Comments
 (0)