Skip to content

Commit

Permalink
readd logo switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
achamely committed Mar 7, 2018
1 parent ca3ea30 commit 2347911
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/containers/TransactionDetail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,16 @@ export class TransactionDetail extends React.Component { // eslint-disable-line
};
const invalidReason = `Reason: ${this.props.txdetail.transaction.invalidreason || ''}`;
const rawTransactionURL = `${API_URL_BASE}/transaction/tx/${this.txid}`;

let logo;
try {
logo = require(`images/token${this.props.txdetail.transaction.propertyid}.png`);
} catch (e) {
logo = require('images/tokendefault.png');
if (this.props.txdetail.transaction.type_int === 4) {
logo = require('images/sendall.png');
} else {
logo = require('images/tokendefault.png');
}
}

let warningMessage = null;
Expand Down

0 comments on commit 2347911

Please sign in to comment.