1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Do not forward to null tx explorer page

This commit is contained in:
Dan Finlay 2016-05-19 19:06:06 -07:00
parent ff20543c59
commit d71ee6927f

View File

@ -63,6 +63,7 @@ module.exports = function(transactions, network) {
key: `tx-${transaction.id + i}`, key: `tx-${transaction.id + i}`,
identiconKey: transaction.txParams.to, identiconKey: transaction.txParams.to,
onClick: (event) => { onClick: (event) => {
if (!transaction.hash) return
var url = explorerLink(transaction.hash, parseInt(network)) var url = explorerLink(transaction.hash, parseInt(network))
chrome.tabs.create({ url }) chrome.tabs.create({ url })
}, },