Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 7608c93

Browse files
committed
fix
1 parent fc70c4b commit 7608c93

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/reducers/registers.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ export function register(state = {}, action) {
2424

2525
case types.RECEIVE_REGISTER_SEND_VALIDATE_CODE:
2626
var lastSendTime = parseInt(moment().format('X'));
27-
return Object.assign({}, state, {isSending: false, lastSendTime: lastSendTime, validateCode:''});
27+
return Object.assign({}, state, {
28+
isSending: false,
29+
lastSendTime: lastSendTime,
30+
validateCode:'',
31+
error: null
32+
});
2833

2934
case types.RECEIVE_REGISTER_SEND_VALIDATE_CODE_ERROR:
3035
return Object.assign({}, state, {isSending: false, error: _.get(action, 'payload')});
@@ -61,7 +66,7 @@ export function register(state = {}, action) {
6166

6267
case types.RECEIVE_REGISTER_CLEAN:
6368
return {};
64-
69+
6570
default:
6671
return state;
6772
}

0 commit comments

Comments
 (0)