Skip to content

Commit 289a803

Browse files
committed
fix: issue 13
1 parent f2624f5 commit 289a803

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vue/src/store/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const store = createStore({
3232

3333
register({commit}, user) {
3434
return axiosClient.post('/register', user)
35-
.then((response) => {
35+
.then(({data}) => {
3636
commit('setUser', data.user);
3737
commit('setToken', data.token)
3838
return data;
@@ -112,7 +112,6 @@ const store = createStore({
112112
});
113113
},
114114
saveSurvey({ commit, dispatch }, survey) {
115-
116115
delete survey.image_url;
117116

118117
let response;

0 commit comments

Comments
 (0)