Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Commit

Permalink
Avoid dappicon bouncing (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored and jacogr committed Dec 18, 2017
1 parent 71cc4af commit 984f249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DappIcon/dappIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class DappIcon extends Component {

switch (app.type) {
case 'view': {
if (!this.dappsUrlStore.dappsUrl) return null;
if (!this.dappsUrlStore.dappsUrl) return <div className={classes} />; // Blank frame

const dappHost = (process.env.DAPPS_URL || `${this.dappsUrlStore.dappsUrl}/ui`).trimRight('/');
const fallbackSrc =
Expand All @@ -73,7 +73,7 @@ class DappIcon extends Component {
break;
}
case 'local': {
if (!this.dappsUrlStore.dappsUrl) return null;
if (!this.dappsUrlStore.dappsUrl) return <div className={classes} />; // Blank frame

imageSrc = `${this.dappsUrlStore.dappsUrl}/${app.id}/${app.iconUrl}`;
break;
Expand Down

0 comments on commit 984f249

Please sign in to comment.