Added 3 second delay to account creation to sidestep a bug

This commit is contained in:
2019-06-01 01:39:11 +10:00
parent 4a2bfb3db9
commit 29e86e4032
4 changed files with 41 additions and 18 deletions
+6 -1
View File
@@ -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;