Skip to content

Commit

Permalink
fix: typos (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo authored May 8, 2024
1 parent 02ed0d1 commit 273527f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/docs/guides/metrics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const client = new DAppClient({
});
```

Your DApp will now start collecting and transmitting data on every wallet requests
Your dApp will now start collecting and transmitting data on every wallet requests

:::important
When `enableMetrics` is set to `true`, an initial request is sent to our backend.
Expand Down
4 changes: 2 additions & 2 deletions src/docs/guides/migration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Next, implement an event listener for BeaconEvent.ACTIVE_ACCOUNT_SET. This event
<TabItem value="taquito">
```typescript
// New method
wallet.client.subscribeToEvent(BeaconEvent.ACTIVE_ACCOUNT_SET, (data) => {
wallet.client.subscribeToEvent(BeaconEvent.ACTIVE_ACCOUNT_SET, (account) => {
// An active account has been set, update the dApp UI
console.log(`${BeaconEvent.ACTIVE_ACCOUNT_SET} triggered: `, account);
});
Expand All @@ -83,7 +83,7 @@ Next, implement an event listener for BeaconEvent.ACTIVE_ACCOUNT_SET. This event

### 3. Handle the Active Account

Adapt your dApp's logic to handle updates from both requestPermissions() and the event subscription. This ensures your dApp remains synchronized with the current active account.
Adapt your dApp's logic to handle updates from both `requestPermissions` and the event subscription. This ensures your dApp remains synchronized with the current active account.

The end result should look something like this:

Expand Down

0 comments on commit 273527f

Please sign in to comment.