diff options
author | dartcafe <github@dartcafe.de> | 2020-10-04 15:07:27 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-10-04 15:07:27 +0300 |
commit | 59b7898c502e3c5970999c1acc9f10cdde297441 (patch) | |
tree | e510d7420e0da0dade0c21f15ac34c55dfdd4976 /src | |
parent | e01e3a7581d8b4be285423667c81540bc7a4f503 (diff) |
some refactoring
Diffstat (limited to 'src')
-rw-r--r-- | src/js/components/SideBar/SideBarTabShare.vue | 2 | ||||
-rw-r--r-- | src/js/store/modules/subModules/shares.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/js/components/SideBar/SideBarTabShare.vue b/src/js/components/SideBar/SideBarTabShare.vue index 7e91667e..b54e8d55 100644 --- a/src/js/components/SideBar/SideBarTabShare.vue +++ b/src/js/components/SideBar/SideBarTabShare.vue @@ -234,7 +234,7 @@ export default { this.$store .dispatch('poll/shares/add', { type: payload.type, - userId: payload.userId, + id: payload.id, userEmail: payload.emailAddress, }) .catch(error => { diff --git a/src/js/store/modules/subModules/shares.js b/src/js/store/modules/subModules/shares.js index 4253e29d..817d86c5 100644 --- a/src/js/store/modules/subModules/shares.js +++ b/src/js/store/modules/subModules/shares.js @@ -92,7 +92,7 @@ const actions = { return axios.post(generateUrl(endPoint), { pollId: context.rootState.poll.id, type: payload.type, - userId: payload.userId, + userId: payload.id, emailAddress: payload.userEmail, }) .then((response) => { |