Added 3 second delay to account creation to sidestep a bug
This commit is contained in:
@@ -5,7 +5,8 @@ import {
|
||||
STORE_RECRUITS,
|
||||
STORE_SOLDIERS,
|
||||
STORE_SPIES,
|
||||
STORE_SCIENTISTS
|
||||
STORE_SCIENTISTS,
|
||||
CLEAR_PROFILE
|
||||
} from '../actions/profile.js';
|
||||
|
||||
const initialStore = {
|
||||
@@ -53,6 +54,10 @@ export const profileReducer = (store = initialStore, action) => {
|
||||
case STORE_SCIENTISTS:
|
||||
newStore.scientists = action.scientists;
|
||||
break;
|
||||
|
||||
case CLEAR_PROFILE:
|
||||
newStore = JSON.parse(JSON.stringify(initialStore));
|
||||
break;
|
||||
};
|
||||
|
||||
return newStore;
|
||||
|
||||
Reference in New Issue
Block a user