Skip to content

Commit

Permalink
Merge pull request #25 from achamely/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
achamely authored Mar 7, 2018
2 parents 4691c78 + 2347911 commit 8f041d8
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 8f041d8

Please sign in to comment.