Skip to content

Commit

Permalink
replace injected and announced
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvoskamp committed Feb 2, 2024
1 parent 39d59bc commit fa67459
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/scaffold/src/views/w3m-connect-view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,41 +138,41 @@ export class W3mConnectView extends LitElement {
)
}

private injectedTemplate() {
private announcedTemplate() {
return this.connectors.map(connector => {
if (connector.type !== 'INJECTED') {
return null
}

if (!ConnectionController.checkInstalled()) {
if (connector.type !== 'ANNOUNCED') {
return null
}

return html`
<wui-list-wallet
imageSrc=${ifDefined(AssetUtil.getConnectorImage(connector))}
.installed=${true}
name=${connector.name ?? 'Unknown'}
@click=${() => this.onConnector(connector)}
tagVariant="success"
.installed=${true}
>
</wui-list-wallet>
`
})
}

private announcedTemplate() {
private injectedTemplate() {
return this.connectors.map(connector => {
if (connector.type !== 'ANNOUNCED') {
if (connector.type !== 'INJECTED') {
return null
}

if (!ConnectionController.checkInstalled()) {
return null
}

return html`
<wui-list-wallet
imageSrc=${ifDefined(AssetUtil.getConnectorImage(connector))}
.installed=${true}
name=${connector.name ?? 'Unknown'}
@click=${() => this.onConnector(connector)}
tagVariant="success"
.installed=${true}
>
</wui-list-wallet>
`
Expand Down

0 comments on commit fa67459

Please sign in to comment.