Skip to content

Commit

Permalink
frontend: CloudTrayMenu: Fix set token in bag
Browse files Browse the repository at this point in the history
* Fix set major tom token in bag to avoid overriding other existings
  contents that major tom itself may set in the future
  • Loading branch information
JoaoMario109 authored and patrickelectric committed Jun 12, 2024
1 parent 20f4590 commit e6df082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/frontend/src/components/cloud/CloudTrayMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ export default Vue.extend({
if (isTokenValid) {
try {
await bag.setData('major_tom', { token: this.token })
const tomData = await bag.getData('major_tom')
await bag.setData('major_tom', { ...tomData, token: this.token })
await back_axios({
url: `${KRAKEN_API_URL}/extension/restart`,
Expand Down

0 comments on commit e6df082

Please sign in to comment.