fix connection issue with sollet.io popup

This commit is contained in:
jhl-alameda 2021-03-17 08:15:09 +08:00
parent 3cdab1cc42
commit 61b17cbe6c
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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 {