Skip to content

Commit

Permalink
Refactor disconnect method to accept session origin as a parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
impredmet committed Jan 25, 2025
1 parent 3e848cc commit 3d8dc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/controller/provider/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class ProviderController {
return account;
};

disconnect = () => {
disconnect = ({ session: { origin } }: { session: { origin: string } }) => {
wallet.removeConnectedSite(origin);
};

Expand Down

0 comments on commit 3d8dc90

Please sign in to comment.