fix connection issue with sollet.io popup
This commit is contained in:
parent
3cdab1cc42
commit
61b17cbe6c
|
@ -115,7 +115,7 @@ function ConnectionsListItem({ origin, connectedWallet }) {
|
||||||
src={iconUrl}
|
src={iconUrl}
|
||||||
onError={() => setIconUrl(faviconUrl)}
|
onError={() => setIconUrl(faviconUrl)}
|
||||||
className={classes.listItemImage}
|
className={classes.listItemImage}
|
||||||
alt={origin}
|
alt=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
|
|
|
@ -147,7 +147,7 @@ export default function PopupPage({ opener }) {
|
||||||
const request = requests[0];
|
const request = requests[0];
|
||||||
const popRequest = () => setRequests((requests) => requests.slice(1));
|
const popRequest = () => setRequests((requests) => requests.slice(1));
|
||||||
|
|
||||||
if (requests.length === 0) {
|
if (hasConnectedAccount && requests.length === 0) {
|
||||||
if (isExtension) {
|
if (isExtension) {
|
||||||
window.close();
|
window.close();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue