diff --git a/src/_store/users.module.js b/src/_store/users.module.js index 354bcce..ba9ac96 100644 --- a/src/_store/users.module.js +++ b/src/_store/users.module.js @@ -71,9 +71,8 @@ const mutations = { // todo: add 'updating:true' property to user being updated }, updateSuccess(state, user) { - // todo: why doesn't this work? - user.token = account.user.token; // preserve token - state.user = account.user = user; + user.token = account.state.user.token; // preserve token + state.user = account.state.user = user; localStorage.setItem('user', JSON.stringify(user)); }, updateFailure(state, { id, error }) { diff --git a/src/account/NewNetworkPage.vue b/src/account/NewNetworkPage.vue index c311b37..a54acc0 100644 --- a/src/account/NewNetworkPage.vue +++ b/src/account/NewNetworkPage.vue @@ -243,10 +243,6 @@ }; this.createNewNetwork(this.network); } - } else { - console.log('handleSubmit: no payment info found'); - // console.log('handleSubmit: paymentMethod='+JSON.stringify(this.paymentMethod)); - if (this.paymentMethod) console.log('handleSubmit: paymentMethod.driverClass='+JSON.stringify(this.paymentMethod.driverClass)); } }); } diff --git a/src/account/ProfilePage.vue b/src/account/ProfilePage.vue index 946e288..b90c3c1 100644 --- a/src/account/ProfilePage.vue +++ b/src/account/ProfilePage.vue @@ -3,47 +3,60 @@