|
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;
|
|
|
|
};
|