Skip to content

Commit

Permalink
docs(aepp): fix account access if "Get accounts" pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Feb 22, 2025
1 parent b15c6fe commit eecbb22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/browser/aepp/src/components/ConnectFrame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import {
RpcRejectedByUserError,
WalletConnectorFrame,
} from '@aeternity/aepp-sdk';
import { toRaw } from 'vue';
import { mapState } from 'vuex';
import SelectNetwork from './SelectNetwork.vue';
Expand Down Expand Up @@ -131,7 +132,7 @@ export default {
},
setAccount(account) {
if (Object.keys(this.aeSdk.accounts).length) this.aeSdk.removeAccount(this.aeSdk.address);
this.aeSdk.addAccount(account, { select: true });
this.aeSdk.addAccount(toRaw(account), { select: true });
this.$store.commit('setAddress', account.address);
},
async connect() {
Expand Down

0 comments on commit eecbb22

Please sign in to comment.