Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Oct 29, 2024
1 parent 08851ba commit 524a8d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/thorin-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ens-tools/thorin-core",
"version": "0.1.4-2",
"version": "0.1.4-3",
"type": "module",
"main": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
10 changes: 7 additions & 3 deletions packages/thorin-core/src/components/connect-modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ export class ThorinConnectModal extends LitElement {
`,
];

@state()
config: Config;

@state()
connections: Connection[] = [];

Expand Down Expand Up @@ -188,13 +191,14 @@ export class ThorinConnectModal extends LitElement {
window.addEventListener(
'wagmiConfigChangedThorin',
({ detail }: CustomEvent<Config>) => {
this.config = detail;
this.updateWagmiState(detail);
}
);
}

override render() {
const wagmiConfig = getWagmiConfig();
const wagmiConfig = this.config || getWagmiConfig();
const account = wagmiConfig // && wagmiConfig?.state
? getAccount(wagmiConfig)
: undefined;
Expand Down Expand Up @@ -363,7 +367,7 @@ export class ThorinConnectModal extends LitElement {
}

_connect(connector: Connector) {
const wagmiConfig = getWagmiConfig();
const wagmiConfig = this.config || getWagmiConfig();

console.log(connector);
this.status = 'connecting';
Expand Down Expand Up @@ -445,7 +449,7 @@ export class ThorinConnectModal extends LitElement {
}

disconnect() {
const wagmiConfig = getWagmiConfig();
const wagmiConfig = this.config || getWagmiConfig();

console.log('Disconnect Requested!');
this.showQR = undefined;
Expand Down

0 comments on commit 524a8d6

Please sign in to comment.