Skip to content

Commit

Permalink
fix: updated actions callback data object
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jun 22, 2023
1 parent e7a52af commit 3dd8ed2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,24 +242,24 @@ const CoCreateUser = {
action.init({
name: "signUp",
endEvent: "signUp",
callback: (btn, data) => {
CoCreateUser.signUp(btn);
callback: (data) => {
CoCreateUser.signUp(data.element);
},
});

action.init({
name: "signIn",
endEvent: "signIn",
callback: (btn, data) => {
CoCreateUser.signIn(btn, data);
callback: (data) => {
CoCreateUser.signIn(data.element);
},
});

action.init({
name: "signOut",
endEvent: "signOut",
callback: (btn, data) => {
CoCreateUser.signOut(btn, data);
callback: (data) => {
CoCreateUser.signOut(data.element);
},
});

Expand Down

0 comments on commit 3dd8ed2

Please sign in to comment.