Skip to content

Commit bd9ea7c

Browse files
committed
clearProfile -> _.noop
clearProfile -> _.noop
1 parent b3f2b28 commit bd9ea7c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/actions/profile.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* should be refactored to avoid redundancy.
66
*/
77
import { createActions } from 'redux-actions';
8-
8+
import _ from 'lodash';
99
import { getService as getUserService } from '../services/user';
1010
import { getService as getMembersService } from '../services/members';
1111

@@ -21,14 +21,6 @@ function loadProfile(handle) {
2121
return handle;
2222
}
2323

24-
/**
25-
* @static
26-
* @desc Creates and action that clear user profile.
27-
* @todo This action does not follow the pattern with init/done pairs of
28-
* actions. Should be improved.
29-
*/
30-
function clearProfile() {}
31-
3224
/**
3325
* @static
3426
* @desc Creates an action that signals beginning of user achievements loading.
@@ -423,7 +415,7 @@ function updatePasswordDone(profile, tokenV3, newPassword, oldPassword) {
423415
export default createActions({
424416
PROFILE: {
425417
LOAD_PROFILE: loadProfile,
426-
CLEAR_PROFILE: clearProfile,
418+
CLEAR_PROFILE: _.noop,
427419
GET_ACHIEVEMENTS_INIT: getAchievementsInit,
428420
GET_ACHIEVEMENTS_DONE: getAchievementsDone,
429421
GET_EXTERNAL_ACCOUNTS_INIT: getExternalAccountsInit,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy