aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-12-21 06:14:03 +0800
committerGitHub <noreply@github.com>2016-12-21 06:14:03 +0800
commitde22ab2090ca7d7929dbba188476a18d9d5f50d0 (patch)
treef5fc945434bda757f1763905d57b29198c852d23 /ui
parent6ce0bc4b11ccb7ffae4f58980db0301dc418c9c0 (diff)
parent05e62cbc17889f1020c5ec93456b799bb4ad2b4c (diff)
downloadtangerine-wallet-browser-de22ab2090ca7d7929dbba188476a18d9d5f50d0.tar
tangerine-wallet-browser-de22ab2090ca7d7929dbba188476a18d9d5f50d0.tar.gz
tangerine-wallet-browser-de22ab2090ca7d7929dbba188476a18d9d5f50d0.tar.bz2
tangerine-wallet-browser-de22ab2090ca7d7929dbba188476a18d9d5f50d0.tar.lz
tangerine-wallet-browser-de22ab2090ca7d7929dbba188476a18d9d5f50d0.tar.xz
tangerine-wallet-browser-de22ab2090ca7d7929dbba188476a18d9d5f50d0.tar.zst
tangerine-wallet-browser-de22ab2090ca7d7929dbba188476a18d9d5f50d0.zip
Merge pull request #943 from MetaMask/fixExplorerLink
Fix explorer link
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/transaction-list-item.js3
-rw-r--r--ui/lib/explorer-link.js2
2 files changed, 2 insertions, 3 deletions
diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js
index 491e90c7c..f92a4ab2e 100644
--- a/ui/app/components/transaction-list-item.js
+++ b/ui/app/components/transaction-list-item.js
@@ -27,7 +27,7 @@ TransactionListItem.prototype.render = function () {
let isLinkable = false
const numericNet = parseInt(network)
- isLinkable = numericNet === 1 || numericNet === 2
+ isLinkable = numericNet === 1 || numericNet === 3
var isMsg = ('msgParams' in transaction)
var isTx = ('txParams' in transaction)
@@ -41,7 +41,6 @@ TransactionListItem.prototype.render = function () {
}
const isClickable = ('hash' in transaction && isLinkable) || isPending
-
return (
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, {
onClick: (event) => {
diff --git a/ui/lib/explorer-link.js b/ui/lib/explorer-link.js
index 2993d1cf1..dc6be2984 100644
--- a/ui/lib/explorer-link.js
+++ b/ui/lib/explorer-link.js
@@ -5,7 +5,7 @@ module.exports = function (hash, network) {
case 1: // main net
prefix = ''
break
- case 2: // morden test net
+ case 3: // morden test net
prefix = 'testnet.'
break
default: