18 lines
282 B
JavaScript
18 lines
282 B
JavaScript
|
var actions = require('../../actions');
|
||
|
|
||
|
module.exports = function(oldProfile, action) {
|
||
|
|
||
|
var newProfile = oldProfile || null;
|
||
|
|
||
|
switch(action.type) {
|
||
|
|
||
|
case actions.launcher.LOAD_PROFILE_SUCCESS:
|
||
|
newProfile = action.profile;
|
||
|
break;
|
||
|
|
||
|
}
|
||
|
|
||
|
return newProfile;
|
||
|
|
||
|
};
|