Skip to content

Commit

Permalink
save user asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Aug 31, 2017
1 parent f5bf7b0 commit 468a5d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UserCreator/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ export function createUser(user) {
return { type: CREATE_USER, payload: user };
}

export function saveUser(user) {
return Promise.resolve(user);
}

export const USER_SAVED = "USER_CREATOR/USER_SAVED";
export function userSaved(user) {
return { type: USER_SAVED, payload: user };
}

export function saveUser(user) {
return Promise.resolve(user);
}

0 comments on commit 468a5d0

Please sign in to comment.